#21146F#21146F

#21146F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.145 H 278.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#21146F
RGBrgb(33, 20, 111)
HSLhsl(249, 69%, 26%)
HSVhsv(249, 82%, 44%)
CMYKcmyk(70.3%, 82%, 0%, 56.5%)
CIE-LABlab(15.33, 35.09, -49.77)
CIE-LCHlch(15.33, 60.90, 305.19°)
OKLaboklab(28.57% 0.0212 -0.1438)
OKLCHoklch(28.57% 0.145 278.4)
XYZxyz(3.7457, 1.9710, 15.2189)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21146F #626F14
analogous
#14356F #21146F #4E146F
triadic
#21146F #6F2114 #146F21
tetradic
#21146F #6F1435 #626F14 #146F4E
square
#21146F #6F1435 #626F14 #146F4E
split-complementary
#21146F #6F4E14 #356F14
monochromatic
#08051A #120B3B #21146F #301DA3 #4027D7

Accessibility & contrast

On white

15.06
#21146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#21146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21146F
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21146F#FFFFFF#000000##FFFFFF
##21146F1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21146f;
/* rgb */ color: rgb(33, 20, 111);
/* oklch */ color: oklch(28.6% 0.145 278.4);
Tailwind
colors: {
  custom: {
    50: '#695499',
    500: '#21146f',
    950: '#000000',
  },
}
SCSS
$custom: #21146f;
$custom-light: #695499;
$custom-dark: #000000;
JSON
{
  "hex": "#21146f",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 248.571,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28568,
    "c": 0.14531,
    "h": 278.4
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#21146F
secondary
#96A639
accent
#EC3CD3
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21146F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#21146F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva