#2F238F#2F238F
#2F238F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.168 H 278.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2F238F |
|---|---|
| RGB | rgb(47, 35, 143) |
| HSL | hsl(247, 61%, 35%) |
| HSV | hsv(247, 76%, 56%) |
| CMYK | cmyk(67.1%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(22.96, 38.91, -57.47) |
| CIE-LCH | lch(22.96, 69.41, 304.10°) |
| OKLab | oklab(35.28% 0.0245 -0.166) |
| OKLCH | oklch(35.28% 0.168 278.4) |
| XYZ | xyz(6.7297, 3.7890, 26.3580) |
| Luminance | 0.0379 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.59
Indigo Blue
#3A18B1
ΔE00 5.34
Midnight Blue
#191970
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 5.56
Indigo (survey)
#380282
ΔE00 5.98
Royal Blue (survey)
#0504AA
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F238F #838F23
analogous
#234D8F #2F238F #65238F
triadic
#2F238F #8F2F23 #238F2F
tetradic
#2F238F #8F234D #838F23 #238F65
square
#2F238F #8F234D #838F23 #238F65
split-complementary
#2F238F #8F6523 #4D8F23
monochromatic
#0F0B2D #1F175E #2F238F #3F2FC0 #6557D6
Accessibility & contrast
On white
11.95
#2F238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#2F238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F238F
11.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F238F | 1.00 | 11.95 | 1.76 | 11.95 |
| #FFFFFF | 11.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2f238f; /* rgb */ color: rgb(47, 35, 143); /* oklch */ color: oklch(35.3% 0.168 278.4);
Tailwind
colors: {
custom: {
50: '#7560b1',
500: '#2f238f',
950: '#000000',
},
}SCSS
$custom: #2f238f; $custom-light: #7560b1; $custom-dark: #000000;
JSON
{
"hex": "#2f238f",
"rgb": {
"r": 47,
"g": 35,
"b": 143
},
"hsl": {
"h": 246.667,
"s": 60.674,
"l": 34.902
},
"oklch": {
"l": 0.35278,
"c": 0.16776,
"h": 278.4
},
"luminance": 0.0379
}Semantic roles & 50–950 ramp
primary
#2F238F
secondary
#AFBA54
accent
#E444D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980