#230840#230840

#230840 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.098 H 300.2°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#230840
RGBrgb(35, 8, 64)
HSLhsl(269, 78%, 14%)
HSVhsv(269, 88%, 25%)
CMYKcmyk(45.3%, 87.5%, 0%, 74.9%)
CIE-LABlab(8.14, 26.85, -29.68)
CIE-LCHlch(8.14, 40.02, 312.13°)
OKLaboklab(22.03% 0.0493 -0.0848)
OKLCHoklch(22.03% 0.098 300.2)
XYZxyz(1.7052, 0.9011, 4.9336)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230840 #254008
analogous
#080940 #230840 #3F0840
triadic
#230840 #402308 #084023
tetradic
#230840 #400809 #254008 #08403F
square
#230840 #400809 #254008 #08403F
split-complementary
#230840 #403F08 #094008
monochromatic
#0F031B #0F031B #230840 #410F76 #5F16AD

Accessibility & contrast

On white

17.79
#230840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#230840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230840
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230840#FFFFFF#000000##FFFFFF
##2308401.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#1C1724
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #230840;
/* rgb */ color: rgb(35, 8, 64);
/* oklch */ color: oklch(22.0% 0.098 300.2);
Tailwind
colors: {
  custom: {
    50: '#624b75',
    500: '#230840',
    950: '#000000',
  },
}
SCSS
$custom: #230840;
$custom-light: #624b75;
$custom-dark: #000000;
JSON
{
  "hex": "#230840",
  "rgb": {
    "r": 35,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 268.929,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22028,
    "c": 0.09811,
    "h": 300.2
  },
  "luminance": 0.00901
}

Semantic roles & 50–950 ramp

primary
#230840
secondary
#537E25
accent
#F43497
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #230840

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

Preview Lab → · Contrast checker → · Palette generator →

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