#21195F#21195F

#21195F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.6% C 0.118 H 280.4°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#21195F
RGBrgb(33, 25, 95)
HSLhsl(247, 58%, 24%)
HSVhsv(247, 74%, 37%)
CMYKcmyk(65.3%, 73.7%, 0%, 62.7%)
CIE-LABlab(14.65, 26.60, -40.36)
CIE-LCHlch(14.65, 48.34, 303.39°)
OKLaboklab(27.56% 0.0214 -0.1163)
OKLCHoklch(27.56% 0.118 280.4)
XYZxyz(3.0397, 1.8446, 11.0201)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21195F #575F19
analogous
#19345F #21195F #44195F
triadic
#21195F #5F2119 #195F21
tetradic
#21195F #5F1934 #575F19 #195F44
square
#21195F #5F1934 #575F19 #195F44
split-complementary
#21195F #5F4419 #345F19
monochromatic
#080618 #100C2F #21195F #32268F #4332C0

Accessibility & contrast

On white

15.34
#21195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21195F
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21195F#FFFFFF#000000##FFFFFF
##21195F1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21195f;
/* rgb */ color: rgb(33, 25, 95);
/* oklch */ color: oklch(27.6% 0.118 280.4);
Tailwind
colors: {
  custom: {
    50: '#65568d',
    500: '#21195f',
    950: '#000000',
  },
}
SCSS
$custom: #21195f;
$custom-light: #65568d;
$custom-dark: #000000;
JSON
{
  "hex": "#21195f",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 246.857,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27559,
    "c": 0.11829,
    "h": 280.4
  },
  "luminance": 0.01845
}

Semantic roles & 50–950 ramp

primary
#21195F
secondary
#8B953F
accent
#E246D0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21195F

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

Preview Lab → · Contrast checker → · Palette generator →

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