#21138C#21138C

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

Color values

HEX#21138C
RGBrgb(33, 19, 140)
HSLhsl(247, 76%, 31%)
HSVhsv(247, 86%, 55%)
CMYKcmyk(76.4%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.72, 44.80, -62.65)
CIE-LCHlch(18.72, 77.02, 305.57°)
OKLaboklab(31.94% 0.0128 -0.1811)
OKLCHoklch(31.94% 0.182 274.1)
XYZxyz(5.5921, 2.6820, 25.0288)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21138C #7E8C13
analogous
#13418C #21138C #5D138C
triadic
#21138C #8C2113 #138C21
tetradic
#21138C #8C1341 #7E8C13 #138C5D
square
#21138C #8C1341 #7E8C13 #138C5D
split-complementary
#21138C #8C5D13 #418C13
monochromatic
#080420 #140C56 #21138C #2E1AC2 #4A36E4

Accessibility & contrast

On white

13.67
#21138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#21138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21138C
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21138C#FFFFFF#000000##FFFFFF
##21138C1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21138c;
/* rgb */ color: rgb(33, 19, 140);
/* oklch */ color: oklch(31.9% 0.182 274.1);
Tailwind
colors: {
  custom: {
    50: '#7156af',
    500: '#21138c',
    950: '#000000',
  },
}
SCSS
$custom: #21138c;
$custom-light: #7156af;
$custom-dark: #000000;
JSON
{
  "hex": "#21138c",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 246.942,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31943,
    "c": 0.18158,
    "h": 274.1
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#21138C
secondary
#B1C03B
accent
#F335DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #21138C

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

Preview Lab → · Contrast checker → · Palette generator →

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