#2F338D#2F338D
#2F338D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.146 H 275.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2F338D |
|---|---|
| RGB | rgb(47, 51, 141) |
| HSL | hsl(237, 50%, 37%) |
| HSV | hsv(237, 67%, 55%) |
| CMYK | cmyk(66.7%, 63.8%, 0%, 44.7%) |
| CIE-LAB | lab(26.43, 28.29, -50.54) |
| CIE-LCH | lch(26.43, 57.92, 299.24°) |
| OKLab | oklab(37.72% 0.0126 -0.1457) |
| OKLCH | oklch(37.72% 0.146 275) |
| XYZ | xyz(7.1623, 4.8945, 25.7614) |
| Luminance | 0.0490 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.65
Darkslateblue
#483D8B
ΔE00 4.82
Blueberry
#464196
ΔE00 4.88
Royal
#0C1793
ΔE00 7.39
Midnight Blue
#191970
ΔE00 7.77
Ocean Blue
#4F42B5
ΔE00 8.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F338D #8D892F
analogous
#2F628D #2F338D #5A2F8D
triadic
#2F338D #8D2F33 #338D2F
tetradic
#2F338D #8D2F62 #8D892F #2F8D5A
square
#2F338D #8D2F62 #8D892F #2F8D5A
split-complementary
#2F338D #8D5A2F #628D2F
monochromatic
#101231 #20225F #2F338D #3E44BB #696ECD
Accessibility & contrast
On white
10.61
#2F338D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2F338D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F338D
10.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F338D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F338D | 1.00 | 10.61 | 1.98 | 10.61 |
| #FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2f338d; /* rgb */ color: rgb(47, 51, 141); /* oklch */ color: oklch(37.7% 0.146 275.0);
Tailwind
colors: {
custom: {
50: '#736baf',
500: '#2f338d',
950: '#000000',
},
}SCSS
$custom: #2f338d; $custom-light: #736baf; $custom-dark: #000000;
JSON
{
"hex": "#2f338d",
"rgb": {
"r": 47,
"g": 51,
"b": 141
},
"hsl": {
"h": 237.447,
"s": 50,
"l": 36.863
},
"oklch": {
"l": 0.37725,
"c": 0.14621,
"h": 275
},
"luminance": 0.04895
}Semantic roles & 50–950 ramp
primary
#2F338D
secondary
#B4B164
accent
#D44EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F