#2F238C#2F238C
#2F238C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.164 H 278.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2F238C |
|---|---|
| RGB | rgb(47, 35, 140) |
| HSL | hsl(247, 60%, 34%) |
| HSV | hsv(247, 75%, 55%) |
| CMYK | cmyk(66.4%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(22.65, 37.93, -56.12) |
| CIE-LCH | lch(22.65, 67.73, 304.05°) |
| OKLab | oklab(34.97% 0.0252 -0.162) |
| OKLCH | oklch(34.97% 0.164 278.8) |
| XYZ | xyz(6.5054, 3.6993, 25.1771) |
| Luminance | 0.0370 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.72
Midnight Blue
#191970
ΔE00 5.18
Indigo Blue
#3A18B1
ΔE00 5.76
Cobalt Blue
#030AA7
ΔE00 5.86
Indigo (survey)
#380282
ΔE00 5.91
Royal Blue (survey)
#0504AA
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F238C #808C23
analogous
#234C8C #2F238C #64238C
triadic
#2F238C #8C2F23 #238C2F
tetradic
#2F238C #8C234C #808C23 #238C64
square
#2F238C #8C234C #808C23 #238C64
split-complementary
#2F238C #8C6423 #4C8C23
monochromatic
#0E0B2A #1F175B #2F238C #3F2FBD #6355D4
Accessibility & contrast
On white
12.07
#2F238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2F238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F238C
12.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F238C | 1.00 | 12.07 | 1.74 | 12.07 |
| #FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2f238c; /* rgb */ color: rgb(47, 35, 140); /* oklch */ color: oklch(35.0% 0.164 278.8);
Tailwind
colors: {
custom: {
50: '#7560af',
500: '#2f238c',
950: '#000000',
},
}SCSS
$custom: #2f238c; $custom-light: #7560af; $custom-dark: #000000;
JSON
{
"hex": "#2f238c",
"rgb": {
"r": 47,
"g": 35,
"b": 140
},
"hsl": {
"h": 246.857,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.34965,
"c": 0.16395,
"h": 278.8
},
"luminance": 0.037
}Semantic roles & 50–950 ramp
primary
#2F238C
secondary
#ADB852
accent
#E345D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F