#21248C#21248C

#21248C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.166 H 272.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#21248C
RGBrgb(33, 36, 140)
HSLhsl(238, 62%, 34%)
HSVhsv(238, 76%, 55%)
CMYKcmyk(76.4%, 74.3%, 0%, 45.1%)
CIE-LABlab(21.86, 35.77, -57.45)
CIE-LCHlch(21.86, 67.67, 301.91°)
OKLaboklab(34.14% 0.0062 -0.1663)
OKLCHoklch(34.14% 0.166 272.1)
XYZxyz(5.9901, 3.4779, 25.1615)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21248C #8C8921
analogous
#215A8C #21248C #54218C
triadic
#21248C #8C2124 #248C21
tetradic
#21248C #8C215A #8C8921 #218C54
square
#21248C #8C215A #8C8921 #218C54
split-complementary
#21248C #8C5421 #5A8C21
monochromatic
#0A0B29 #15175A #21248C #2D31BE #5155D6

Accessibility & contrast

On white

12.38
#21248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#21248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21248C
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21248C#FFFFFF#000000##FFFFFF
##21248C1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21248c;
/* rgb */ color: rgb(33, 36, 140);
/* oklch */ color: oklch(34.1% 0.166 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f60af',
    500: '#21248c',
    950: '#000000',
  },
}
SCSS
$custom: #21248c;
$custom-light: #6f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#21248c",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 238.318,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34145,
    "c": 0.16637,
    "h": 272.1
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#21248C
secondary
#B9B74F
accent
#E043E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #21248C

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

Preview Lab → · Contrast checker → · Palette generator →

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