#21236F#21236F

#21236F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.128 H 274.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#21236F
RGBrgb(33, 35, 111)
HSLhsl(238, 54%, 28%)
HSVhsv(238, 70%, 44%)
CMYKcmyk(70.3%, 68.5%, 0%, 56.5%)
CIE-LABlab(18.68, 25.81, -44.26)
CIE-LCHlch(18.68, 51.24, 300.25°)
OKLaboklab(30.96% 0.0107 -0.1277)
OKLCHoklch(30.96% 0.128 274.8)
XYZxyz(4.0965, 2.6727, 15.3358)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21236F #6F6D21
analogous
#214A6F #21236F #46216F
triadic
#21236F #6F2123 #236F21
tetradic
#21236F #6F214A #6F6D21 #216F46
square
#21236F #6F214A #6F6D21 #216F46
split-complementary
#21236F #6F4621 #4A6F21
monochromatic
#070718 #131440 #21236F #2F329E #4347C7

Accessibility & contrast

On white

13.68
#21236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#21236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21236F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21236F#FFFFFF#000000##FFFFFF
##21236F1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21236f;
/* rgb */ color: rgb(33, 35, 111);
/* oklch */ color: oklch(31.0% 0.128 274.8);
Tailwind
colors: {
  custom: {
    50: '#685e99',
    500: '#21236f',
    950: '#000000',
  },
}
SCSS
$custom: #21236f;
$custom-light: #685e99;
$custom-dark: #000000;
JSON
{
  "hex": "#21236f",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 238.462,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30958,
    "c": 0.12819,
    "h": 274.8
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#21236F
secondary
#A3A049
accent
#DA4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21236F

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

Preview Lab → · Contrast checker → · Palette generator →

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