#21148D#21148D

#21148D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.182 H 273.9°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#21148D
RGBrgb(33, 20, 141)
HSLhsl(246, 75%, 32%)
HSVhsv(246, 86%, 55%)
CMYKcmyk(76.6%, 85.8%, 0%, 44.7%)
CIE-LABlab(19.00, 44.67, -62.82)
CIE-LCHlch(19.00, 77.08, 305.42°)
OKLaboklab(32.17% 0.0123 -0.1816)
OKLCHoklch(32.17% 0.182 273.9)
XYZxyz(5.6835, 2.7461, 25.4247)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21148D #808D14
analogous
#14448D #21148D #5E148D
triadic
#21148D #8D2114 #148D21
tetradic
#21148D #8D1444 #808D14 #148D5E
square
#21148D #8D1444 #808D14 #148D5E
split-complementary
#21148D #8D5E14 #448D14
monochromatic
#080522 #140C57 #21148D #2E1CC3 #4B39E3

Accessibility & contrast

On white

13.55
#21148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21148D
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21148D#FFFFFF#000000##FFFFFF
##21148D1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21148d;
/* rgb */ color: rgb(33, 20, 141);
/* oklch */ color: oklch(32.2% 0.182 273.9);
Tailwind
colors: {
  custom: {
    50: '#7157b0',
    500: '#21148d',
    950: '#000000',
  },
}
SCSS
$custom: #21148d;
$custom-light: #7157b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21148d",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 246.446,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32168,
    "c": 0.18205,
    "h": 273.9
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#21148D
secondary
#B3C13C
accent
#F236DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21148D

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

Preview Lab → · Contrast checker → · Palette generator →

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