#2B237F#2B237F
#2B237F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.148 H 278.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2B237F |
|---|---|
| RGB | rgb(43, 35, 127) |
| HSL | hsl(245, 57%, 32%) |
| HSV | hsv(245, 72%, 50%) |
| CMYK | cmyk(66.1%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(21.01, 33.01, -50.66) |
| CIE-LCH | lch(21.01, 60.47, 303.09°) |
| OKLab | oklab(33.31% 0.0221 -0.1462) |
| OKLCH | oklch(33.31% 0.148 278.6) |
| XYZ | xyz(5.4268, 3.2475, 20.4154) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.54
Royal
#0C1793
ΔE00 4.67
Indigo (survey)
#380282
ΔE00 6.35
Dark Royal Blue
#02066F
ΔE00 6.94
Darkblue
#00008B
ΔE00 7.09
Navy
#000080
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B237F #777F23
analogous
#23497F #2B237F #59237F
triadic
#2B237F #7F2B23 #237F2B
tetradic
#2B237F #7F2349 #777F23 #237F59
square
#2B237F #7F2349 #777F23 #237F59
split-complementary
#2B237F #7F5923 #497F23
monochromatic
#0B091F #1B164F #2B237F #3B30AF #594ECE
Accessibility & contrast
On white
12.73
#2B237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2B237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B237F
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B237F | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b237f; /* rgb */ color: rgb(43, 35, 127); /* oklch */ color: oklch(33.3% 0.148 278.6);
Tailwind
colors: {
custom: {
50: '#705fa5',
500: '#2b237f',
950: '#000000',
},
}SCSS
$custom: #2b237f; $custom-light: #705fa5; $custom-dark: #000000;
JSON
{
"hex": "#2b237f",
"rgb": {
"r": 43,
"g": 35,
"b": 127
},
"hsl": {
"h": 245.217,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.33314,
"c": 0.14784,
"h": 278.6
},
"luminance": 0.03248
}Semantic roles & 50–950 ramp
primary
#2B237F
secondary
#A9B14C
accent
#E048D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F