#21148A#21148A

#21148A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.178 H 274.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#21148A
RGBrgb(33, 20, 138)
HSLhsl(247, 75%, 31%)
HSVhsv(247, 86%, 54%)
CMYKcmyk(76.1%, 85.5%, 0%, 45.9%)
CIE-LABlab(18.62, 43.74, -61.57)
CIE-LCHlch(18.62, 75.53, 305.39°)
OKLaboklab(31.8% 0.0131 -0.178)
OKLCHoklch(31.8% 0.179 274.2)
XYZxyz(5.4633, 2.6581, 24.2650)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21148A #7D8A14
analogous
#14428A #21148A #5C148A
triadic
#21148A #8A2114 #148A21
tetradic
#21148A #8A1442 #7D8A14 #148A5C
square
#21148A #8A1442 #7D8A14 #148A5C
split-complementary
#21148A #8A5C14 #428A14
monochromatic
#07051F #140C55 #21148A #2E1CBF #4936E2

Accessibility & contrast

On white

13.71
#21148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21148A
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21148A#FFFFFF#000000##FFFFFF
##21148A1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21148a;
/* rgb */ color: rgb(33, 20, 138);
/* oklch */ color: oklch(31.8% 0.178 274.2);
Tailwind
colors: {
  custom: {
    50: '#7056ad',
    500: '#21148a',
    950: '#000000',
  },
}
SCSS
$custom: #21148a;
$custom-light: #7056ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21148a",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 246.61,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31799,
    "c": 0.1785,
    "h": 274.2
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#21148A
secondary
#B0BE3C
accent
#F136DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #21148A

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

Preview Lab → · Contrast checker → · Palette generator →

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