#21235C#21235C

#21235C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.100 H 276.7°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#21235C
RGBrgb(33, 35, 92)
HSLhsl(238, 47%, 25%)
HSVhsv(238, 64%, 36%)
CMYKcmyk(64.1%, 62%, 0%, 63.9%)
CIE-LABlab(16.98, 18.62, -34.56)
CIE-LCHlch(16.98, 39.26, 298.31°)
OKLaboklab(29.18% 0.0117 -0.0993)
OKLCHoklch(29.18% 0.1 276.7)
XYZxyz(3.1594, 2.2979, 10.4002)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21235C #5C5A21
analogous
#21415C #21235C #3D215C
triadic
#21235C #5C2123 #235C21
tetradic
#21235C #5C2141 #5C5A21 #215C3D
square
#21235C #5C2141 #5C5A21 #215C3D
split-complementary
#21235C #5C3D21 #415C21
monochromatic
#080917 #11122F #21235C #313489 #4145B6

Accessibility & contrast

On white

14.39
#21235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21235C
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21235C#FFFFFF#000000##FFFFFF
##21235C1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21235c;
/* rgb */ color: rgb(33, 35, 92);
/* oklch */ color: oklch(29.2% 0.100 276.7);
Tailwind
colors: {
  custom: {
    50: '#635d8b',
    500: '#21235c',
    950: '#000000',
  },
}
SCSS
$custom: #21235c;
$custom-light: #635d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#21235c",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 237.966,
    "s": 47.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29175,
    "c": 0.09995,
    "h": 276.7
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#21235C
secondary
#908E49
accent
#D251D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21235C

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

Preview Lab → · Contrast checker → · Palette generator →

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