#210740#210740

#210740 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.099 H 298.2°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#210740
RGBrgb(33, 7, 64)
HSLhsl(267, 80%, 14%)
HSVhsv(267, 89%, 25%)
CMYKcmyk(48.4%, 89.1%, 0%, 74.9%)
CIE-LABlab(7.64, 27.02, -30.52)
CIE-LCHlch(7.64, 40.76, 311.52°)
OKLaboklab(21.61% 0.0469 -0.0874)
OKLCHoklch(21.61% 0.099 298.2)
XYZxyz(1.6284, 0.8454, 4.9269)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210740 #264007
analogous
#070A40 #210740 #3E0740
triadic
#210740 #402107 #074021
tetradic
#210740 #40070A #264007 #07403E
square
#210740 #40070A #264007 #07403E
split-complementary
#210740 #403E07 #0A4007
monochromatic
#0E031C #0E031C #210740 #3D0D77 #5A13AE

Accessibility & contrast

On white

17.96
#210740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#210740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210740
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210740#FFFFFF#000000##FFFFFF
##2107401.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#191723
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #210740;
/* rgb */ color: rgb(33, 7, 64);
/* oklch */ color: oklch(21.6% 0.099 298.2);
Tailwind
colors: {
  custom: {
    50: '#604a75',
    500: '#210740',
    950: '#000000',
  },
}
SCSS
$custom: #210740;
$custom-light: #604a75;
$custom-dark: #000000;
JSON
{
  "hex": "#210740",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 267.368,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21606,
    "c": 0.09915,
    "h": 298.2
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#210740
secondary
#557F24
accent
#F7319D
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #210740

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

Preview Lab → · Contrast checker → · Palette generator →

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