#21148B#21148B

#21148B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.180 H 274.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#21148B
RGBrgb(33, 20, 139)
HSLhsl(247, 75%, 31%)
HSVhsv(247, 86%, 55%)
CMYKcmyk(76.3%, 85.6%, 0%, 45.5%)
CIE-LABlab(18.74, 44.05, -61.99)
CIE-LCHlch(18.74, 76.05, 305.40°)
OKLaboklab(31.92% 0.0128 -0.1792)
OKLCHoklch(31.92% 0.18 274.1)
XYZxyz(5.5360, 2.6872, 24.6480)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21148B #7E8B14
analogous
#14428B #21148B #5C148B
triadic
#21148B #8B2114 #148B21
tetradic
#21148B #8B1442 #7E8B14 #148B5C
square
#21148B #8B1442 #7E8B14 #148B5C
split-complementary
#21148B #8B5C14 #428B14
monochromatic
#080520 #140C55 #21148B #2E1CC1 #4A37E2

Accessibility & contrast

On white

13.66
#21148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#21148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21148B
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21148B#FFFFFF#000000##FFFFFF
##21148B1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21148b;
/* rgb */ color: rgb(33, 20, 139);
/* oklch */ color: oklch(31.9% 0.180 274.1);
Tailwind
colors: {
  custom: {
    50: '#7056ae',
    500: '#21148b',
    950: '#000000',
  },
}
SCSS
$custom: #21148b;
$custom-light: #7056ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21148b",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 246.555,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31922,
    "c": 0.17969,
    "h": 274.1
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#21148B
secondary
#B1BF3C
accent
#F136DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #21148B

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

Preview Lab → · Contrast checker → · Palette generator →

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