#21134F#21134F

#21134F is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.104 H 287.0°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#21134F
RGBrgb(33, 19, 79)
HSLhsl(254, 61%, 19%)
HSVhsv(254, 76%, 31%)
CMYKcmyk(58.2%, 75.9%, 0%, 69%)
CIE-LABlab(11.64, 24.85, -34.46)
CIE-LCHlch(11.64, 42.48, 305.80°)
OKLaboklab(24.91% 0.0303 -0.099)
OKLCHoklch(24.91% 0.104 287)
XYZxyz(2.2709, 1.3535, 7.5372)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21134F #414F13
analogous
#13234F #21134F #3F134F
triadic
#21134F #4F2113 #134F21
tetradic
#21134F #4F1323 #414F13 #134F3F
square
#21134F #4F1323 #414F13 #134F3F
split-complementary
#21134F #4F3F13 #234F13
monochromatic
#0A0619 #0C071E #21134F #361F80 #4A2BB2

Accessibility & contrast

On white

16.53
#21134F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#21134F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21134F
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21134F#FFFFFF#000000##FFFFFF
##21134F1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001D4E
Tritanopia (blue-blind)
#0F232F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #21134f;
/* rgb */ color: rgb(33, 19, 79);
/* oklch */ color: oklch(24.9% 0.104 287.0);
Tailwind
colors: {
  custom: {
    50: '#625281',
    500: '#21134f',
    950: '#000000',
  },
}
SCSS
$custom: #21134f;
$custom-light: #625281;
$custom-dark: #000000;
JSON
{
  "hex": "#21134f",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 79
  },
  "hsl": {
    "h": 254,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24913,
    "c": 0.10353,
    "h": 287
  },
  "luminance": 0.01354
}

Semantic roles & 50–950 ramp

primary
#21134F
secondary
#758836
accent
#E443BF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #21134F

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

Preview Lab → · Contrast checker → · Palette generator →

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