#231850#231850

#231850 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.098 H 286.5°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#231850
RGBrgb(35, 24, 80)
HSLhsl(252, 54%, 20%)
HSVhsv(252, 70%, 31%)
CMYKcmyk(56.3%, 70%, 0%, 68.6%)
CIE-LABlab(13.17, 22.33, -32.65)
CIE-LCHlch(13.17, 39.55, 304.36°)
OKLaboklab(26.09% 0.0278 -0.0936)
OKLCHoklch(26.09% 0.098 286.5)
XYZxyz(2.4673, 1.5897, 7.7647)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231850 #455018
analogous
#182950 #231850 #3F1850
triadic
#231850 #502318 #185023
tetradic
#231850 #501829 #455018 #18503F
square
#231850 #501829 #455018 #18503F
split-complementary
#231850 #503F18 #295018
monochromatic
#0A0718 #0E0A21 #231850 #38267F #4C34AE

Accessibility & contrast

On white

15.93
#231850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#231850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231850
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231850#FFFFFF#000000##FFFFFF
##2318501.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231850;
/* rgb */ color: rgb(35, 24, 80);
/* oklch */ color: oklch(26.1% 0.098 286.5);
Tailwind
colors: {
  custom: {
    50: '#635582',
    500: '#231850',
    950: '#000000',
  },
}
SCSS
$custom: #231850;
$custom-light: #635582;
$custom-dark: #000000;
JSON
{
  "hex": "#231850",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 251.786,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26093,
    "c": 0.09766,
    "h": 286.5
  },
  "luminance": 0.0159
}

Semantic roles & 50–950 ramp

primary
#231850
secondary
#78873D
accent
#DD4BC0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05030A
muted
#7A787C

Preview Lab

Preview with #231850

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

Preview Lab → · Contrast checker → · Palette generator →

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