#2F257C#2F257C
#2F257C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.141 H 280.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2F257C |
|---|---|
| RGB | rgb(47, 37, 124) |
| HSL | hsl(247, 54%, 32%) |
| HSV | hsv(247, 70%, 49%) |
| CMYK | cmyk(62.1%, 70.2%, 0%, 51.4%) |
| CIE-LAB | lab(21.51, 31.35, -47.92) |
| CIE-LCH | lch(21.51, 57.26, 303.20°) |
| OKLab | oklab(33.67% 0.0266 -0.138) |
| OKLCH | oklch(33.67% 0.141 280.9) |
| XYZ | xyz(5.4708, 3.3823, 19.4294) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.92
Royal
#0C1793
ΔE00 5.61
Indigo (survey)
#380282
ΔE00 6.77
Darkslateblue
#483D8B
ΔE00 7.23
Dark Royal Blue
#02066F
ΔE00 7.54
Deep Blue
#040273
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F257C #727C25
analogous
#25477C #2F257C #5B257C
triadic
#2F257C #7C2F25 #257C2F
tetradic
#2F257C #7C2547 #727C25 #257C5B
square
#2F257C #7C2547 #727C25 #257C5B
split-complementary
#2F257C #7C5B25 #477C25
monochromatic
#0B091E #1D174D #2F257C #4133AB #5F50CB
Accessibility & contrast
On white
12.53
#2F257C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2F257C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F257C
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F257C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F257C | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f257c; /* rgb */ color: rgb(47, 37, 124); /* oklch */ color: oklch(33.7% 0.141 280.9);
Tailwind
colors: {
custom: {
50: '#7160a3',
500: '#2f257c',
950: '#000000',
},
}SCSS
$custom: #2f257c; $custom-light: #7160a3; $custom-dark: #000000;
JSON
{
"hex": "#2f257c",
"rgb": {
"r": 47,
"g": 37,
"b": 124
},
"hsl": {
"h": 246.897,
"s": 54.037,
"l": 31.569
},
"oklch": {
"l": 0.33674,
"c": 0.14057,
"h": 280.9
},
"luminance": 0.03383
}Semantic roles & 50–950 ramp
primary
#2F257C
secondary
#A3AE4F
accent
#DD4ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F