#21197C#21197C
#21197C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.157 H 275.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).
Color values
| HEX | #21197C |
|---|---|
| RGB | rgb(33, 25, 124) |
| HSL | hsl(245, 66%, 29%) |
| HSV | hsv(245, 80%, 49%) |
| CMYK | cmyk(73.4%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(17.80, 36.69, -54.07) |
| CIE-LCH | lch(17.80, 65.34, 304.15°) |
| OKLab | oklab(30.74% 0.015 -0.1563) |
| OKLCH | oklch(30.74% 0.157 275.5) |
| XYZ | xyz(4.6117, 2.4734, 19.2992) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.19
Royal
#0C1793
ΔE00 3.59
Dark Royal Blue
#02066F
ΔE00 4.45
Navy
#000080
ΔE00 4.72
Deep Blue
#040273
ΔE00 4.73
Darkblue
#00008B
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21197C #747C19
analogous
#19437C #21197C #53197C
triadic
#21197C #7C2119 #197C21
tetradic
#21197C #7C1943 #747C19 #197C53
square
#21197C #7C1943 #747C19 #197C53
split-complementary
#21197C #7C5319 #437C19
monochromatic
#070519 #130F49 #21197C #2F23AF #4538D7
Accessibility & contrast
On white
14.05
#21197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#21197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21197C
14.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21197C | 1.00 | 14.05 | 1.49 | 14.05 |
| #FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #21197c; /* rgb */ color: rgb(33, 25, 124); /* oklch */ color: oklch(30.7% 0.157 275.5);
Tailwind
colors: {
custom: {
50: '#6c58a3',
500: '#21197c',
950: '#000000',
},
}SCSS
$custom: #21197c; $custom-light: #6c58a3; $custom-dark: #000000;
JSON
{
"hex": "#21197c",
"rgb": {
"r": 33,
"g": 25,
"b": 124
},
"hsl": {
"h": 244.848,
"s": 66.443,
"l": 29.216
},
"oklch": {
"l": 0.30737,
"c": 0.15707,
"h": 275.5
},
"luminance": 0.02474
}Semantic roles & 50–950 ramp
primary
#21197C
secondary
#A7B040
accent
#E93EDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F