#2F338E#2F338E
#2F338E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.148 H 274.9°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2F338E |
|---|---|
| RGB | rgb(47, 51, 142) |
| HSL | hsl(237, 50%, 37%) |
| HSV | hsv(237, 67%, 56%) |
| CMYK | cmyk(66.9%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(26.52, 28.65, -51.02) |
| CIE-LCH | lch(26.52, 58.51, 299.32°) |
| OKLab | oklab(37.82% 0.0126 -0.1471) |
| OKLCH | oklch(37.82% 0.148 274.9) |
| XYZ | xyz(7.2370, 4.9244, 26.1551) |
| Luminance | 0.0493 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.51
Blueberry
#464196
ΔE00 4.86
Darkslateblue
#483D8B
ΔE00 4.86
Royal
#0C1793
ΔE00 7.34
Midnight Blue
#191970
ΔE00 7.83
Ocean Blue
#4F42B5
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F338E #8E8A2F
analogous
#2F638E #2F338E #5B2F8E
triadic
#2F338E #8E2F33 #338E2F
tetradic
#2F338E #8E2F63 #8E8A2F #2F8E5B
square
#2F338E #8E2F63 #8E8A2F #2F8E5B
split-complementary
#2F338E #8E5B2F #638E2F
monochromatic
#111232 #202260 #2F338E #3E44BC #6A6ECE
Accessibility & contrast
On white
10.58
#2F338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#2F338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F338E
10.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F338E | 1.00 | 10.58 | 1.99 | 10.58 |
| #FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2f338e; /* rgb */ color: rgb(47, 51, 142); /* oklch */ color: oklch(37.8% 0.148 274.9);
Tailwind
colors: {
custom: {
50: '#746bb0',
500: '#2f338e',
950: '#000000',
},
}SCSS
$custom: #2f338e; $custom-light: #746bb0; $custom-dark: #000000;
JSON
{
"hex": "#2f338e",
"rgb": {
"r": 47,
"g": 51,
"b": 142
},
"hsl": {
"h": 237.474,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.37815,
"c": 0.1476,
"h": 274.9
},
"luminance": 0.04925
}Semantic roles & 50–950 ramp
primary
#2F338E
secondary
#B5B164
accent
#D44EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80