#27318B#27318B
#27318B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.148 H 271.9°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).
Color values
| HEX | #27318B |
|---|---|
| RGB | rgb(39, 49, 139) |
| HSL | hsl(234, 56%, 35%) |
| HSV | hsv(234, 72%, 55%) |
| CMYK | cmyk(71.9%, 64.7%, 0%, 45.5%) |
| CIE-LAB | lab(25.23, 27.71, -51.28) |
| CIE-LCH | lch(25.23, 58.29, 298.39°) |
| OKLab | oklab(36.65% 0.0049 -0.148) |
| OKLCH | oklch(36.65% 0.148 271.9) |
| XYZ | xyz(6.5936, 4.4914, 24.9405) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.85
Darkslateblue
#483D8B
ΔE00 5.85
Blueberry
#464196
ΔE00 5.89
Royal
#0C1793
ΔE00 6.93
Midnight Blue
#191970
ΔE00 7.19
Marine
#042E60
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27318B #8B8127
analogous
#27638B #27318B #4F278B
triadic
#27318B #8B2731 #318B27
tetradic
#27318B #8B2763 #8B8127 #278B4F
square
#27318B #8B2763 #8B8127 #278B4F
split-complementary
#27318B #8B4F27 #638B27
monochromatic
#0C0F2B #1A205B #27318B #3442BB #5B67D1
Accessibility & contrast
On white
11.06
#27318B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#27318B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27318B
11.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27318B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27318B | 1.00 | 11.06 | 1.90 | 11.06 |
| #FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #27318b; /* rgb */ color: rgb(39, 49, 139); /* oklch */ color: oklch(36.7% 0.148 271.9);
Tailwind
colors: {
custom: {
50: '#7069ae',
500: '#27318b',
950: '#000000',
},
}SCSS
$custom: #27318b; $custom-light: #7069ae; $custom-dark: #000000;
JSON
{
"hex": "#27318b",
"rgb": {
"r": 39,
"g": 49,
"b": 139
},
"hsl": {
"h": 234,
"s": 56.18,
"l": 34.902
},
"oklch": {
"l": 0.36654,
"c": 0.14813,
"h": 271.9
},
"luminance": 0.04492
}Semantic roles & 50–950 ramp
primary
#27318B
secondary
#B6AD58
accent
#D048DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F