#201238#201238

#201238 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.071 H 297.3°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#201238
RGBrgb(32, 18, 56)
HSLhsl(262, 51%, 15%)
HSVhsv(262, 68%, 22%)
CMYKcmyk(42.9%, 67.9%, 0%, 78%)
CIE-LABlab(9.20, 17.51, -22.24)
CIE-LCHlch(9.20, 28.31, 308.21°)
OKLaboklab(22.46% 0.0327 -0.0631)
OKLCHoklch(22.46% 0.071 297.3)
XYZxyz(1.5256, 1.0252, 3.8581)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201238 #2A3812
analogous
#121738 #201238 #331238
triadic
#201238 #382012 #123820
tetradic
#201238 #381217 #2A3812 #123833
square
#201238 #381217 #2A3812 #123833
split-complementary
#201238 #383312 #173812
monochromatic
#0D0717 #0D0717 #201238 #3A2166 #553095

Accessibility & contrast

On white

17.43
#201238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#201238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201238
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201238#FFFFFF#000000##FFFFFF
##2012381.0017.431.2117.43
#FFFFFF17.431.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A39
Deuteranopia (green-blind)
#051937
Tritanopia (blue-blind)
#1A1A22
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #201238;
/* rgb */ color: rgb(32, 18, 56);
/* oklch */ color: oklch(22.5% 0.071 297.3);
Tailwind
colors: {
  custom: {
    50: '#5d506f',
    500: '#201238',
    950: '#000000',
  },
}
SCSS
$custom: #201238;
$custom-light: #5d506f;
$custom-dark: #000000;
JSON
{
  "hex": "#201238",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 262.105,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22464,
    "c": 0.07108,
    "h": 297.3
  },
  "luminance": 0.01025
}

Semantic roles & 50–950 ramp

primary
#201238
secondary
#5B7135
accent
#DB4DA7
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #201238

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

Preview Lab → · Contrast checker → · Palette generator →

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