#271F95#271F95
#271F95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.181 H 274.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #271F95 |
|---|---|
| RGB | rgb(39, 31, 149) |
| HSL | hsl(244, 66%, 35%) |
| HSV | hsv(244, 79%, 58%) |
| CMYK | cmyk(73.8%, 79.2%, 0%, 41.6%) |
| CIE-LAB | lab(22.23, 42.26, -62.41) |
| CIE-LCH | lch(22.23, 75.37, 304.10°) |
| OKLab | oklab(34.8% 0.0143 -0.1805) |
| OKLCH | oklch(34.8% 0.181 274.5) |
| XYZ | xyz(6.7497, 3.5806, 28.7633) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.37
Cobalt Blue
#030AA7
ΔE00 4.13
Indigo Blue
#3A18B1
ΔE00 4.61
Royal Blue (survey)
#0504AA
ΔE00 4.67
Ultramarine
#2000B1
ΔE00 5.13
Darkblue
#00008B
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F95 #8D951F
analogous
#1F5295 #271F95 #621F95
triadic
#271F95 #95271F #1F9527
tetradic
#271F95 #951F52 #8D951F #1F9562
square
#271F95 #951F52 #8D951F #1F9562
split-complementary
#271F95 #95621F #52951F
monochromatic
#0C0A30 #1A1462 #271F95 #342AC8 #5C53DB
Accessibility & contrast
On white
12.24
#271F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#271F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F95
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F95 | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #271f95; /* rgb */ color: rgb(39, 31, 149); /* oklch */ color: oklch(34.8% 0.181 274.5);
Tailwind
colors: {
custom: {
50: '#745db5',
500: '#271f95',
950: '#000000',
},
}SCSS
$custom: #271f95; $custom-light: #745db5; $custom-dark: #000000;
JSON
{
"hex": "#271f95",
"rgb": {
"r": 39,
"g": 31,
"b": 149
},
"hsl": {
"h": 244.068,
"s": 65.556,
"l": 35.294
},
"oklch": {
"l": 0.34803,
"c": 0.18106,
"h": 274.5
},
"luminance": 0.03581
}Semantic roles & 50–950 ramp
primary
#271F95
secondary
#B7BF51
accent
#E93FDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980