#210338#210338

#210338 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.096 H 305.0°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#210338
RGBrgb(33, 3, 56)
HSLhsl(274, 90%, 12%)
HSVhsv(274, 95%, 22%)
CMYKcmyk(41.1%, 94.6%, 0%, 78%)
CIE-LABlab(6.09, 26.58, -27.27)
CIE-LCHlch(6.09, 38.08, 314.27°)
OKLaboklab(20.15% 0.0551 -0.0786)
OKLCHoklch(20.15% 0.096 305)
XYZxyz(1.3734, 0.6740, 3.7984)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210338 #1A3803
analogous
#060338 #210338 #380335
triadic
#210338 #382103 #033821
tetradic
#210338 #380603 #1A3803 #033538
square
#210338 #380603 #1A3803 #033538
split-complementary
#210338 #353803 #033806
monochromatic
#11021D #11021D #210338 #430672 #6509AC

Accessibility & contrast

On white

18.51
#210338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#210338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210338
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210338#FFFFFF#000000##FFFFFF
##2103381.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#1D111E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #210338;
/* rgb */ color: rgb(33, 3, 56);
/* oklch */ color: oklch(20.2% 0.096 305.0);
Tailwind
colors: {
  custom: {
    50: '#5f476f',
    500: '#210338',
    950: '#000000',
  },
}
SCSS
$custom: #210338;
$custom-light: #5f476f;
$custom-dark: #000000;
JSON
{
  "hex": "#210338",
  "rgb": {
    "r": 33,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 273.962,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20154,
    "c": 0.09602,
    "h": 305
  },
  "luminance": 0.00674
}

Semantic roles & 50–950 ramp

primary
#210338
secondary
#457B1C
accent
#FF2986
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #210338

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

Preview Lab → · Contrast checker → · Palette generator →

#210338 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva