#21195E#21195E

#21195E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.5% C 0.117 H 280.7°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#21195E
RGBrgb(33, 25, 94)
HSLhsl(247, 58%, 23%)
HSVhsv(247, 73%, 37%)
CMYKcmyk(64.9%, 73.4%, 0%, 63.1%)
CIE-LABlab(14.55, 26.24, -39.86)
CIE-LCHlch(14.55, 47.72, 303.36°)
OKLaboklab(27.46% 0.0216 -0.1148)
OKLCHoklch(27.46% 0.117 280.7)
XYZxyz(2.9946, 1.8265, 10.7823)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21195E #565E19
analogous
#19335E #21195E #43195E
triadic
#21195E #5E2119 #195E21
tetradic
#21195E #5E1933 #565E19 #195E43
square
#21195E #5E1933 #565E19 #195E43
split-complementary
#21195E #5E4319 #335E19
monochromatic
#080618 #100C2E #21195E #32268E #4333BF

Accessibility & contrast

On white

15.38
#21195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#21195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21195E
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21195E#FFFFFF#000000##FFFFFF
##21195E1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21195e;
/* rgb */ color: rgb(33, 25, 94);
/* oklch */ color: oklch(27.5% 0.117 280.7);
Tailwind
colors: {
  custom: {
    50: '#65568c',
    500: '#21195e',
    950: '#000000',
  },
}
SCSS
$custom: #21195e;
$custom-light: #65568c;
$custom-dark: #000000;
JSON
{
  "hex": "#21195e",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 246.957,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27456,
    "c": 0.11687,
    "h": 280.7
  },
  "luminance": 0.01827
}

Semantic roles & 50–950 ramp

primary
#21195E
secondary
#8A943F
accent
#E147CF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21195E

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

Preview Lab → · Contrast checker → · Palette generator →

#21195E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva