#21138F#21138F

#21138F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.185 H 273.7°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#21138F
RGBrgb(33, 19, 143)
HSLhsl(247, 77%, 32%)
HSVhsv(247, 87%, 56%)
CMYKcmyk(76.9%, 86.7%, 0%, 43.9%)
CIE-LABlab(19.10, 45.72, -63.89)
CIE-LCHlch(19.10, 78.56, 305.59°)
OKLaboklab(32.32% 0.0119 -0.1847)
OKLCHoklch(32.32% 0.185 273.7)
XYZxyz(5.8164, 2.7716, 26.2097)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21138F #818F13
analogous
#13438F #21138F #5F138F
triadic
#21138F #8F2113 #138F21
tetradic
#21138F #8F1343 #818F13 #138F5F
square
#21138F #8F1343 #818F13 #138F5F
split-complementary
#21138F #8F5F13 #438F13
monochromatic
#080523 #150C59 #21138F #2D1AC5 #4B38E5

Accessibility & contrast

On white

13.51
#21138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21138F
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21138F#FFFFFF#000000##FFFFFF
##21138F1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21138f;
/* rgb */ color: rgb(33, 19, 143);
/* oklch */ color: oklch(32.3% 0.185 273.7);
Tailwind
colors: {
  custom: {
    50: '#7156b1',
    500: '#21138f',
    950: '#000000',
  },
}
SCSS
$custom: #21138f;
$custom-light: #7156b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21138f",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 246.774,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32315,
    "c": 0.1851,
    "h": 273.7
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#21138F
secondary
#B4C33B
accent
#F335DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21138F

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

Preview Lab → · Contrast checker → · Palette generator →

#21138F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva