#21246C#21246C

#21246C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.123 H 274.8°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#21246C
RGBrgb(33, 36, 108)
HSLhsl(238, 53%, 28%)
HSVhsv(238, 69%, 42%)
CMYKcmyk(69.4%, 66.7%, 0%, 57.6%)
CIE-LABlab(18.66, 24.00, -42.35)
CIE-LCHlch(18.66, 48.68, 299.54°)
OKLaboklab(30.86% 0.0102 -0.1221)
OKLCHoklch(30.86% 0.123 274.8)
XYZxyz(3.9640, 2.6674, 14.4904)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21246C #6C6921
analogous
#21496C #21246C #43216C
triadic
#21246C #6C2124 #246C21
tetradic
#21246C #6C2149 #6C6921 #216C43
square
#21246C #6C2149 #6C6921 #216C43
split-complementary
#21246C #6C4321 #496C21
monochromatic
#070817 #13143D #21246C #2F349B #4247C5

Accessibility & contrast

On white

13.69
#21246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21246C
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21246C#FFFFFF#000000##FFFFFF
##21246C1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21246c;
/* rgb */ color: rgb(33, 36, 108);
/* oklch */ color: oklch(30.9% 0.123 274.8);
Tailwind
colors: {
  custom: {
    50: '#675e97',
    500: '#21246c',
    950: '#000000',
  },
}
SCSS
$custom: #21246c;
$custom-light: #675e97;
$custom-dark: #000000;
JSON
{
  "hex": "#21246c",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 237.6,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30855,
    "c": 0.12255,
    "h": 274.8
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21246C

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

Preview Lab → · Contrast checker → · Palette generator →

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