#2F338C#2F338C
#2F338C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.145 H 275.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2F338C |
|---|---|
| RGB | rgb(47, 51, 140) |
| HSL | hsl(237, 50%, 37%) |
| HSV | hsv(237, 66%, 55%) |
| CMYK | cmyk(66.4%, 63.6%, 0%, 45.1%) |
| CIE-LAB | lab(26.35, 27.93, -50.06) |
| CIE-LCH | lch(26.35, 57.33, 299.16°) |
| OKLab | oklab(37.64% 0.0127 -0.1442) |
| OKLCH | oklch(37.64% 0.145 275) |
| XYZ | xyz(7.0882, 4.8648, 25.3713) |
| Luminance | 0.0486 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.79
Sapphire (survey)
#2138AB
ΔE00 4.80
Blueberry
#464196
ΔE00 4.90
Royal
#0C1793
ΔE00 7.45
Midnight Blue
#191970
ΔE00 7.71
Ocean Blue
#4F42B5
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F338C #8C882F
analogous
#2F628C #2F338C #5A2F8C
triadic
#2F338C #8C2F33 #338C2F
tetradic
#2F338C #8C2F62 #8C882F #2F8C5A
square
#2F338C #8C2F62 #8C882F #2F8C5A
split-complementary
#2F338C #8C5A2F #628C2F
monochromatic
#101230 #20225E #2F338C #3E44BA #696DCD
Accessibility & contrast
On white
10.64
#2F338C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2F338C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F338C
10.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F338C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F338C | 1.00 | 10.64 | 1.97 | 10.64 |
| #FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f338c; /* rgb */ color: rgb(47, 51, 140); /* oklch */ color: oklch(37.6% 0.145 275.0);
Tailwind
colors: {
custom: {
50: '#736bae',
500: '#2f338c',
950: '#000000',
},
}SCSS
$custom: #2f338c; $custom-light: #736bae; $custom-dark: #000000;
JSON
{
"hex": "#2f338c",
"rgb": {
"r": 47,
"g": 51,
"b": 140
},
"hsl": {
"h": 237.419,
"s": 49.733,
"l": 36.667
},
"oklch": {
"l": 0.37635,
"c": 0.14481,
"h": 275
},
"luminance": 0.04865
}Semantic roles & 50–950 ramp
primary
#2F338C
secondary
#B4B063
accent
#D34FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F