#2F268B#2F268B
#2F268B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.159 H 278.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2F268B |
|---|---|
| RGB | rgb(47, 38, 139) |
| HSL | hsl(245, 57%, 35%) |
| HSV | hsv(245, 73%, 55%) |
| CMYK | cmyk(66.2%, 72.7%, 0%, 45.5%) |
| CIE-LAB | lab(23.18, 35.83, -54.62) |
| CIE-LCH | lch(23.18, 65.32, 303.26°) |
| OKLab | oklab(35.31% 0.0233 -0.1576) |
| OKLCH | oklch(35.31% 0.159 278.4) |
| XYZ | xyz(6.5241, 3.8541, 24.8212) |
| Luminance | 0.0386 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.30
Midnight Blue
#191970
ΔE00 5.30
Indigo Blue
#3A18B1
ΔE00 6.23
Cobalt Blue
#030AA7
ΔE00 6.51
Indigo (survey)
#380282
ΔE00 6.64
Sapphire (survey)
#2138AB
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F268B #828B26
analogous
#264F8B #2F268B #62268B
triadic
#2F268B #8B2F26 #268B2F
tetradic
#2F268B #8B264F #828B26 #268B62
square
#2F268B #8B264F #828B26 #268B62
split-complementary
#2F268B #8B6226 #4F8B26
monochromatic
#0E0C2B #1F195B #2F268B #3F33BB #645AD2
Accessibility & contrast
On white
11.86
#2F268B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#2F268B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F268B
11.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F268B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F268B | 1.00 | 11.86 | 1.77 | 11.86 |
| #FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2f268b; /* rgb */ color: rgb(47, 38, 139); /* oklch */ color: oklch(35.3% 0.159 278.4);
Tailwind
colors: {
custom: {
50: '#7462ae',
500: '#2f268b',
950: '#000000',
},
}SCSS
$custom: #2f268b; $custom-light: #7462ae; $custom-dark: #000000;
JSON
{
"hex": "#2f268b",
"rgb": {
"r": 47,
"g": 38,
"b": 139
},
"hsl": {
"h": 245.347,
"s": 57.062,
"l": 34.706
},
"oklch": {
"l": 0.35313,
"c": 0.15935,
"h": 278.4
},
"luminance": 0.03855
}Semantic roles & 50–950 ramp
primary
#2F268B
secondary
#AEB756
accent
#E047D3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F