Nearest named color · #5168B5
#5168B5
Nearest named color: Starstruck
#5168B5 (rgb(81 104 181), hsl(226 40% 51%), oklch(0.536 0.124 269.4)) is closest to the named color Starstruck. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#5168B5
oklch(0.536 0.124 269.4)
Color conversions
- HEX
- #5168b5
- RGB
- rgb(81 104 181)
- HSL
- hsl(226 40% 51%)
- HWB
- hwb(226 32% 29%)
- OKLCH
- oklch(0.536 0.124 269.4)
- OKLab
- oklab(0.536 -0.001 -0.124)
- CIE Lab
- lab(45.02 9.02 -44.28)
- LCH
- lch(45.02 45.19 281.5)
- CMYK
- cmyk(55% 43% 0% 29%)
Tints · Shades · Tones
Tints
- 6177BD
- 7186C5
- 8195CD
- 92A4D5
- A4B3DC
- B5C2E3
- C7D1EA
- DAE0F1
- ECEFF8
Shades
- 45599D
- 3A4B86
- 2F3E6F
- 243059
- 1A2444
- 101830
- 070C1D
- 02040C
- 000002
Tones
- 556BB0
- 5A6EAB
- 5F71A6
- 6373A1
- 68769C
- 6D7897
- 727A91
- 767C8C
- 7B7E86
Color harmonies
Complementary +180°
- 5168B5
Starstruck
- 876900
≈ Muddy Brown
Analogous -30° +30°
- 5168B5
Starstruck
- 0075AC
≈ Reef Escape
- 795BAA
≈ Genestealer Purple
Triadic +120° +240°
- 5168B5
Starstruck
- A94D41
≈ Squig Orange
- 2C8144
≈ Bold Irish
Split-complementary +150° +210°
- 5168B5
Starstruck
- A15908
≈ Windsor Brown
- 667708
≈ Topiary Green
Tetradic +90° +180° +270°
- 5168B5
Starstruck
- A54B6B
≈ Ancient Fuchsia
- 876900
≈ Muddy Brown
- 00806F
≈ Tropical Green
Contrast & accessibility
Ag
AAOn white
WCAG 5.25:1 · APCA Lc 76
Ag
FailOn black
WCAG 3.99:1 · APCA Lc 26
Best text color: #FFFFFF
WCAG 5.25:1 (AA) · APCA Lc 76
Contrast pairs
Code snippets
CSS
:root {
--starstruck: #5168b5;
--starstruck-rgb: 81 104 181;
--starstruck-oklch: oklch(0.536 0.124 269.4);
}
.element {
color: var(--starstruck);
background-color: hsl(226 40% 51%);
border-color: oklch(0.536 0.124 269.4);
}Tailwind CSS v4
@theme {
--color-starstruck: #5168b5;
--color-starstruck-50: #e8f4ff;
--color-starstruck-100: #d9e6ff;
--color-starstruck-200: #c1d2ff;
--color-starstruck-300: #a0b4f7;
--color-starstruck-400: #819ae8;
--color-starstruck-500: #6580d8;
--color-starstruck-600: #566db6;
--color-starstruck-700: #455792;
--color-starstruck-800: #2f406d;
--color-starstruck-900: #202c4d;
--color-starstruck-950: #101933;
}SCSS
$starstruck: #5168b5;
$starstruck-rgb: 81, 104, 181;
$starstruck-light: mix(#fff, $starstruck, 20%);
$starstruck-dark: mix(#000, $starstruck, 20%);
.element {
color: $starstruck;
box-shadow: 0 0 0 2px rgba($starstruck, 0.35);
}