#21236A#21236A

#21236A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.121 H 275.3°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#21236A
RGBrgb(33, 35, 106)
HSLhsl(238, 53%, 27%)
HSVhsv(238, 69%, 42%)
CMYKcmyk(68.9%, 67%, 0%, 58.4%)
CIE-LABlab(18.21, 23.93, -41.78)
CIE-LCHlch(18.21, 48.15, 299.80°)
OKLaboklab(30.47% 0.0112 -0.1205)
OKLCHoklch(30.47% 0.121 275.3)
XYZxyz(3.8289, 2.5657, 13.9263)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21236A #6A6821
analogous
#21486A #21236A #44216A
triadic
#21236A #6A2123 #236A21
tetradic
#21236A #6A2148 #6A6821 #216A44
square
#21236A #6A2148 #6A6821 #216A44
split-complementary
#21236A #6A4421 #486A21
monochromatic
#070817 #12143B #21236A #303299 #4145C4

Accessibility & contrast

On white

13.88
#21236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#21236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21236A
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21236A#FFFFFF#000000##FFFFFF
##21236A1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21236a;
/* rgb */ color: rgb(33, 35, 106);
/* oklch */ color: oklch(30.5% 0.121 275.3);
Tailwind
colors: {
  custom: {
    50: '#675e95',
    500: '#21236a',
    950: '#000000',
  },
}
SCSS
$custom: #21236a;
$custom-light: #675e95;
$custom-dark: #000000;
JSON
{
  "hex": "#21236a",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 238.356,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3047,
    "c": 0.12098,
    "h": 275.3
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#21236A
secondary
#9E9B49
accent
#D84CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #21236A

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

Preview Lab → · Contrast checker → · Palette generator →

#21236A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva