#21246D#21246D

#21246D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.124 H 274.7°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#21246D
RGBrgb(33, 36, 109)
HSLhsl(238, 54%, 28%)
HSVhsv(238, 70%, 43%)
CMYKcmyk(69.7%, 67%, 0%, 57.3%)
CIE-LABlab(18.75, 24.38, -42.85)
CIE-LCHlch(18.75, 49.30, 299.63°)
OKLaboklab(30.95% 0.0101 -0.1236)
OKLCHoklch(30.95% 0.124 274.7)
XYZxyz(4.0175, 2.6889, 14.7723)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21246D #6D6A21
analogous
#214A6D #21246D #44216D
triadic
#21246D #6D2124 #246D21
tetradic
#21246D #6D214A #6D6A21 #216D44
square
#21246D #6D214A #6D6A21 #216D44
split-complementary
#21246D #6D4421 #4A6D21
monochromatic
#070817 #13143E #21246D #2F349C #4248C6

Accessibility & contrast

On white

13.66
#21246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#21246D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21246D
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21246D#FFFFFF#000000##FFFFFF
##21246D1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21246d;
/* rgb */ color: rgb(33, 36, 109);
/* oklch */ color: oklch(31.0% 0.124 274.7);
Tailwind
colors: {
  custom: {
    50: '#675f98',
    500: '#21246d',
    950: '#000000',
  },
}
SCSS
$custom: #21246d;
$custom-light: #675f98;
$custom-dark: #000000;
JSON
{
  "hex": "#21246d",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 237.632,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30951,
    "c": 0.12401,
    "h": 274.7
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#21246D
secondary
#A19D49
accent
#D74BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21246D

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

Preview Lab → · Contrast checker → · Palette generator →

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