#231950#231950

#231950 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.096 H 286.1°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#231950
RGBrgb(35, 25, 80)
HSLhsl(251, 52%, 21%)
HSVhsv(251, 69%, 31%)
CMYKcmyk(56.3%, 68.8%, 0%, 68.6%)
CIE-LABlab(13.42, 21.65, -32.24)
CIE-LCHlch(13.42, 38.83, 303.88°)
OKLaboklab(26.28% 0.0266 -0.0924)
OKLCHoklch(26.28% 0.096 286.1)
XYZxyz(2.4883, 1.6316, 7.7717)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231950 #465019
analogous
#192A50 #231950 #3E1950
triadic
#231950 #502319 #195023
tetradic
#231950 #50192A #465019 #19503E
square
#231950 #50192A #465019 #19503E
split-complementary
#231950 #503E19 #2A5019
monochromatic
#0A0717 #0F0A21 #231950 #37287F #4C36AD

Accessibility & contrast

On white

15.83
#231950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#231950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231950
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231950#FFFFFF#000000##FFFFFF
##2319501.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#122631
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #231950;
/* rgb */ color: rgb(35, 25, 80);
/* oklch */ color: oklch(26.3% 0.096 286.1);
Tailwind
colors: {
  custom: {
    50: '#635682',
    500: '#231950',
    950: '#000000',
  },
}
SCSS
$custom: #231950;
$custom-light: #635682;
$custom-dark: #000000;
JSON
{
  "hex": "#231950",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 250.909,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26278,
    "c": 0.09617,
    "h": 286.1
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#231950
secondary
#79863E
accent
#DC4CC2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05030A
muted
#7A787C

Preview Lab

Preview with #231950

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

Preview Lab → · Contrast checker → · Palette generator →

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