#2F338B#2F338B
#2F338B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.143 H 275.1°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F338B |
|---|---|
| RGB | rgb(47, 51, 139) |
| HSL | hsl(237, 49%, 36%) |
| HSV | hsv(237, 66%, 55%) |
| CMYK | cmyk(66.2%, 63.3%, 0%, 45.5%) |
| CIE-LAB | lab(26.26, 27.57, -49.58) |
| CIE-LCH | lch(26.26, 56.73, 299.08°) |
| OKLab | oklab(37.55% 0.0127 -0.1428) |
| OKLCH | oklch(37.55% 0.143 275.1) |
| XYZ | xyz(7.0148, 4.8355, 24.9848) |
| Luminance | 0.0484 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.77
Blueberry
#464196
ΔE00 4.93
Sapphire (survey)
#2138AB
ΔE00 4.94
Royal
#0C1793
ΔE00 7.51
Midnight Blue
#191970
ΔE00 7.66
Ocean Blue
#4F42B5
ΔE00 8.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F338B #8B872F
analogous
#2F618B #2F338B #592F8B
triadic
#2F338B #8B2F33 #338B2F
tetradic
#2F338B #8B2F61 #8B872F #2F8B59
square
#2F338B #8B2F61 #8B872F #2F8B59
split-complementary
#2F338B #8B592F #618B2F
monochromatic
#101130 #20225D #2F338B #3E44B9 #686DCC
Accessibility & contrast
On white
10.68
#2F338B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2F338B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F338B
10.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F338B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F338B | 1.00 | 10.68 | 1.97 | 10.68 |
| #FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f338b; /* rgb */ color: rgb(47, 51, 139); /* oklch */ color: oklch(37.5% 0.143 275.1);
Tailwind
colors: {
custom: {
50: '#736aae',
500: '#2f338b',
950: '#000000',
},
}SCSS
$custom: #2f338b; $custom-light: #736aae; $custom-dark: #000000;
JSON
{
"hex": "#2f338b",
"rgb": {
"r": 47,
"g": 51,
"b": 139
},
"hsl": {
"h": 237.391,
"s": 49.462,
"l": 36.471
},
"oklch": {
"l": 0.37546,
"c": 0.14341,
"h": 275.1
},
"luminance": 0.04836
}Semantic roles & 50–950 ramp
primary
#2F338B
secondary
#B3B063
accent
#D34FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F