#21235D#21235D

#21235D is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.101 H 276.6°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#21235D
RGBrgb(33, 35, 93)
HSLhsl(238, 48%, 25%)
HSVhsv(238, 65%, 36%)
CMYKcmyk(64.5%, 62.4%, 0%, 63.5%)
CIE-LABlab(17.06, 19.00, -35.09)
CIE-LCHlch(17.06, 39.90, 298.43°)
OKLaboklab(29.26% 0.0117 -0.1008)
OKLCHoklch(29.26% 0.101 276.6)
XYZxyz(3.2034, 2.3155, 10.6319)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21235D #5D5B21
analogous
#21415D #21235D #3D215D
triadic
#21235D #5D2123 #235D21
tetradic
#21235D #5D2141 #5D5B21 #215D3D
square
#21235D #5D2141 #5D5B21 #215D3D
split-complementary
#21235D #5D3D21 #415D21
monochromatic
#080917 #111230 #21235D #31348A #4145B7

Accessibility & contrast

On white

14.35
#21235D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#21235D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21235D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21235D#FFFFFF#000000##FFFFFF
##21235D1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21235d;
/* rgb */ color: rgb(33, 35, 93);
/* oklch */ color: oklch(29.3% 0.101 276.6);
Tailwind
colors: {
  custom: {
    50: '#635d8b',
    500: '#21235d',
    950: '#000000',
  },
}
SCSS
$custom: #21235d;
$custom-light: #635d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#21235d",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 93
  },
  "hsl": {
    "h": 238,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29263,
    "c": 0.10149,
    "h": 276.6
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#21235D
secondary
#918F49
accent
#D351D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21235D

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

Preview Lab → · Contrast checker → · Palette generator →

#21235D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva