#21235E#21235E

#21235E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.4% C 0.103 H 276.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#21235E
RGBrgb(33, 35, 94)
HSLhsl(238, 48%, 25%)
HSVhsv(238, 65%, 37%)
CMYKcmyk(64.9%, 62.8%, 0%, 63.1%)
CIE-LABlab(17.15, 19.38, -35.62)
CIE-LCHlch(17.15, 40.55, 298.55°)
OKLaboklab(29.35% 0.0117 -0.1024)
OKLCHoklch(29.35% 0.103 276.5)
XYZxyz(3.2480, 2.3333, 10.8667)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21235E #5E5C21
analogous
#21415E #21235E #3E215E
triadic
#21235E #5E2123 #235E21
tetradic
#21235E #5E2141 #5E5C21 #215E3E
square
#21235E #5E2141 #5E5C21 #215E3E
split-complementary
#21235E #5E3E21 #415E21
monochromatic
#080817 #111231 #21235E #31348B #4145B9

Accessibility & contrast

On white

14.32
#21235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#21235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21235E
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21235E#FFFFFF#000000##FFFFFF
##21235E1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21235e;
/* rgb */ color: rgb(33, 35, 94);
/* oklch */ color: oklch(29.4% 0.103 276.5);
Tailwind
colors: {
  custom: {
    50: '#645d8c',
    500: '#21235e',
    950: '#000000',
  },
}
SCSS
$custom: #21235e;
$custom-light: #645d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#21235e",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 238.033,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29353,
    "c": 0.10303,
    "h": 276.5
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#21235E
secondary
#929049
accent
#D350D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21235E

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

Preview Lab → · Contrast checker → · Palette generator →

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