#2F258F#2F258F
#2F258F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.166 H 278.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2F258F |
|---|---|
| RGB | rgb(47, 37, 143) |
| HSL | hsl(246, 59%, 35%) |
| HSV | hsv(246, 74%, 56%) |
| CMYK | cmyk(67.1%, 74.1%, 0%, 43.9%) |
| CIE-LAB | lab(23.37, 37.76, -56.80) |
| CIE-LCH | lch(23.37, 68.20, 303.62°) |
| OKLab | oklab(35.57% 0.0232 -0.164) |
| OKLCH | oklch(35.57% 0.166 278) |
| XYZ | xyz(6.7902, 3.9101, 26.3782) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.92
Indigo Blue
#3A18B1
ΔE00 5.55
Midnight Blue
#191970
ΔE00 5.67
Cobalt Blue
#030AA7
ΔE00 5.92
Royal Blue (survey)
#0504AA
ΔE00 6.44
Indigo (survey)
#380282
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F258F #858F25
analogous
#25508F #2F258F #64258F
triadic
#2F258F #8F2F25 #258F2F
tetradic
#2F258F #8F2550 #858F25 #258F64
square
#2F258F #8F2550 #858F25 #258F64
split-complementary
#2F258F #8F6425 #508F25
monochromatic
#0F0C2E #1F185E #2F258F #3F32C0 #665AD4
Accessibility & contrast
On white
11.78
#2F258F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2F258F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F258F
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F258F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F258F | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2f258f; /* rgb */ color: rgb(47, 37, 143); /* oklch */ color: oklch(35.6% 0.166 278.0);
Tailwind
colors: {
custom: {
50: '#7561b1',
500: '#2f258f',
950: '#000000',
},
}SCSS
$custom: #2f258f; $custom-light: #7561b1; $custom-dark: #000000;
JSON
{
"hex": "#2f258f",
"rgb": {
"r": 47,
"g": 37,
"b": 143
},
"hsl": {
"h": 245.66,
"s": 58.889,
"l": 35.294
},
"oklch": {
"l": 0.35569,
"c": 0.16563,
"h": 278
},
"luminance": 0.03911
}Semantic roles & 50–950 ramp
primary
#2F258F
secondary
#B0B957
accent
#E246D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980