#2F417C#2F417C
#2F417C is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.102 H 268.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2F417C |
|---|---|
| RGB | rgb(47, 65, 124) |
| HSL | hsl(226, 45%, 34%) |
| HSV | hsv(226, 62%, 49%) |
| CMYK | cmyk(62.1%, 47.6%, 0%, 51.4%) |
| CIE-LAB | lab(29.00, 12.56, -35.79) |
| CIE-LCH | lch(29.00, 37.93, 289.33°) |
| OKLab | oklab(39.25% -0.0025 -0.1021) |
| OKLCH | oklch(39.25% 0.102 268.6) |
| XYZ | xyz(6.6995, 5.8396, 19.8390) |
| Luminance | 0.0584 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.69
Darkish Blue
#014182
ΔE00 5.22
Twilight Blue
#0A437A
ΔE00 5.68
Marine Blue
#01386A
ΔE00 6.25
Blueberry
#464196
ΔE00 6.39
Darkslateblue
#483D8B
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F417C #7C6A2F
analogous
#2F677C #2F417C #432F7C
triadic
#2F417C #7C2F41 #417C2F
tetradic
#2F417C #7C2F67 #7C6A2F #2F7C43
square
#2F417C #7C2F67 #7C6A2F #2F7C43
split-complementary
#2F417C #7C432F #677C2F
monochromatic
#0D1223 #1E2A50 #2F417C #4058A8 #6279C3
Accessibility & contrast
On white
9.69
#2F417C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#2F417C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F417C
9.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F417C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F417C | 1.00 | 9.69 | 2.17 | 9.69 |
| #FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25487E
Deuteranopia (green-blind)
#19417B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2f417c; /* rgb */ color: rgb(47, 65, 124); /* oklch */ color: oklch(39.2% 0.102 268.6);
Tailwind
colors: {
custom: {
50: '#6f75a2',
500: '#2f417c',
950: '#000000',
},
}SCSS
$custom: #2f417c; $custom-light: #6f75a2; $custom-dark: #000000;
JSON
{
"hex": "#2f417c",
"rgb": {
"r": 47,
"g": 65,
"b": 124
},
"hsl": {
"h": 225.974,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.39249,
"c": 0.10216,
"h": 268.6
},
"luminance": 0.0584
}Semantic roles & 50–950 ramp
primary
#2F417C
secondary
#AA985C
accent
#B653D5
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F