#2F3EA6#2F3EA6
#2F3EA6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.167 H 271.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3EA6 |
|---|---|
| RGB | rgb(47, 62, 166) |
| HSL | hsl(232, 56%, 42%) |
| HSV | hsv(232, 72%, 65%) |
| CMYK | cmyk(71.7%, 62.7%, 0%, 34.9%) |
| CIE-LAB | lab(31.35, 30.16, -57.76) |
| CIE-LCH | lch(31.35, 65.16, 297.57°) |
| OKLab | oklab(42.01% 0.0028 -0.1667) |
| OKLCH | oklch(42.01% 0.167 271) |
| XYZ | xyz(9.7755, 6.8018, 36.8667) |
| Luminance | 0.0680 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.06
Blueberry
#464196
ΔE00 4.33
Blue Blue
#2242C7
ΔE00 4.50
Ocean Blue
#4F42B5
ΔE00 5.12
Cobalt
#0047AB
ΔE00 5.12
Darkslateblue
#483D8B
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3EA6 #A6972F
analogous
#2F7AA6 #2F3EA6 #5C2FA6
triadic
#2F3EA6 #A62F3E #3EA62F
tetradic
#2F3EA6 #A62F7A #A6972F #2FA65C
square
#2F3EA6 #A62F7A #A6972F #2FA65C
split-complementary
#2F3EA6 #A65C2F #7AA62F
monochromatic
#141A47 #212C76 #2F3EA6 #4758CB #7783D8
Accessibility & contrast
On white
8.90
#2F3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2F3EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3EA6
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3EA6 | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f3ea6; /* rgb */ color: rgb(47, 62, 166); /* oklch */ color: oklch(42.0% 0.167 271.0);
Tailwind
colors: {
custom: {
50: '#7873c1',
500: '#2f3ea6',
950: '#000000',
},
}SCSS
$custom: #2f3ea6; $custom-light: #7873c1; $custom-dark: #000000;
JSON
{
"hex": "#2f3ea6",
"rgb": {
"r": 47,
"g": 62,
"b": 166
},
"hsl": {
"h": 232.437,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.42012,
"c": 0.16677,
"h": 271
},
"luminance": 0.06803
}Semantic roles & 50–950 ramp
primary
#2F3EA6
secondary
#C1B670
accent
#CC49DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81