#2F338A#2F338A
#2F338A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.142 H 275.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2F338A |
|---|---|
| RGB | rgb(47, 51, 138) |
| HSL | hsl(237, 49%, 36%) |
| HSV | hsv(237, 66%, 54%) |
| CMYK | cmyk(65.9%, 63%, 0%, 45.9%) |
| CIE-LAB | lab(26.18, 27.21, -49.10) |
| CIE-LCH | lch(26.18, 56.13, 299.00°) |
| OKLab | oklab(37.46% 0.0128 -0.1414) |
| OKLCH | oklch(37.46% 0.142 275.2) |
| XYZ | xyz(6.9421, 4.8064, 24.6017) |
| Luminance | 0.0481 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.74
Blueberry
#464196
ΔE00 4.96
Sapphire (survey)
#2138AB
ΔE00 5.09
Royal
#0C1793
ΔE00 7.58
Midnight Blue
#191970
ΔE00 7.61
Ocean Blue
#4F42B5
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F338A #8A862F
analogous
#2F618A #2F338A #592F8A
triadic
#2F338A #8A2F33 #338A2F
tetradic
#2F338A #8A2F61 #8A862F #2F8A59
square
#2F338A #8A2F61 #8A862F #2F8A59
split-complementary
#2F338A #8A592F #618A2F
monochromatic
#10112F #1F225C #2F338A #3F44B8 #686CCC
Accessibility & contrast
On white
10.71
#2F338A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2F338A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F338A
10.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F338A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F338A | 1.00 | 10.71 | 1.96 | 10.71 |
| #FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f338a; /* rgb */ color: rgb(47, 51, 138); /* oklch */ color: oklch(37.5% 0.142 275.2);
Tailwind
colors: {
custom: {
50: '#736aad',
500: '#2f338a',
950: '#000000',
},
}SCSS
$custom: #2f338a; $custom-light: #736aad; $custom-dark: #000000;
JSON
{
"hex": "#2f338a",
"rgb": {
"r": 47,
"g": 51,
"b": 138
},
"hsl": {
"h": 237.363,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.37457,
"c": 0.142,
"h": 275.2
},
"luminance": 0.04807
}Semantic roles & 50–950 ramp
primary
#2F338A
secondary
#B3AF62
accent
#D34FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F