#21246A#21246A

#21246A is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.7% C 0.120 H 274.9°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#21246A
RGBrgb(33, 36, 106)
HSLhsl(238, 53%, 27%)
HSVhsv(238, 69%, 42%)
CMYKcmyk(68.9%, 66%, 0%, 58.4%)
CIE-LABlab(18.48, 23.24, -41.35)
CIE-LCHlch(18.48, 47.43, 299.34°)
OKLaboklab(30.66% 0.0103 -0.1192)
OKLCHoklch(30.66% 0.12 274.9)
XYZxyz(3.8587, 2.6254, 13.9363)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21246A #6A6721
analogous
#21496A #21246A #42216A
triadic
#21246A #6A2124 #246A21
tetradic
#21246A #6A2149 #6A6721 #216A42
square
#21246A #6A2149 #6A6721 #216A42
split-complementary
#21246A #6A4221 #496A21
monochromatic
#070817 #12143B #21246A #303499 #4147C4

Accessibility & contrast

On white

13.77
#21246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#21246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21246A
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21246A#FFFFFF#000000##FFFFFF
##21246A1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21246a;
/* rgb */ color: rgb(33, 36, 106);
/* oklch */ color: oklch(30.7% 0.120 274.9);
Tailwind
colors: {
  custom: {
    50: '#665e95',
    500: '#21246a',
    950: '#000000',
  },
}
SCSS
$custom: #21246a;
$custom-light: #665e95;
$custom-dark: #000000;
JSON
{
  "hex": "#21246a",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 237.534,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30663,
    "c": 0.11963,
    "h": 274.9
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#21246A
secondary
#9E9A49
accent
#D64CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #21246A

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

Preview Lab → · Contrast checker → · Palette generator →

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