#251FB3#251FB3
#251FB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.217 H 271.2°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).
Color values
| HEX | #251FB3 |
|---|---|
| RGB | rgb(37, 31, 179) |
| HSL | hsl(242, 70%, 41%) |
| HSV | hsv(242, 83%, 70%) |
| CMYK | cmyk(79.3%, 82.7%, 0%, 29.8%) |
| CIE-LAB | lab(25.64, 51.62, -74.98) |
| CIE-LCH | lch(25.64, 91.03, 304.54°) |
| OKLab | oklab(38.17% 0.0046 -0.217) |
| OKLCH | oklch(38.17% 0.217 271.2) |
| XYZ | xyz(9.3869, 4.6269, 43.0374) |
| Luminance | 0.0463 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.21
True Blue
#010FCC
ΔE00 3.30
Ultramarine
#2000B1
ΔE00 3.76
Mediumblue
#0000CD
ΔE00 3.99
Cobalt Blue
#030AA7
ΔE00 4.05
Royal Blue (survey)
#0504AA
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#251FB3 #ADB31F
analogous
#1F63B3 #251FB3 #6F1FB3
triadic
#251FB3 #B3251F #1FB325
tetradic
#251FB3 #B31F63 #ADB31F #1FB36F
square
#251FB3 #B31F63 #ADB31F #1FB36F
split-complementary
#251FB3 #B36F1F #63B31F
monochromatic
#0F0D4B #1A167F #251FB3 #3A33DC #6D68E5
Accessibility & contrast
On white
10.91
#251FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#251FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #251FB3
10.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##251FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##251FB3 | 1.00 | 10.91 | 1.93 | 10.91 |
| #FFFFFF | 10.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #251fb3; /* rgb */ color: rgb(37, 31, 179); /* oklch */ color: oklch(38.2% 0.217 271.2);
Tailwind
colors: {
custom: {
50: '#7b5fcb',
500: '#251fb3',
950: '#000000',
},
}SCSS
$custom: #251fb3; $custom-light: #7b5fcb; $custom-dark: #000000;
JSON
{
"hex": "#251fb3",
"rgb": {
"r": 37,
"g": 31,
"b": 179
},
"hsl": {
"h": 242.432,
"s": 70.476,
"l": 41.176
},
"oklch": {
"l": 0.38169,
"c": 0.21703,
"h": 271.2
},
"luminance": 0.04628
}Semantic roles & 50–950 ramp
primary
#251FB3
secondary
#C6CA64
accent
#ED3BE6
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982