#230540#230540

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

Color values

HEX#230540
RGBrgb(35, 5, 64)
HSLhsl(271, 86%, 14%)
HSVhsv(271, 92%, 25%)
CMYKcmyk(45.3%, 92.2%, 0%, 74.9%)
CIE-LABlab(7.55, 28.54, -30.64)
CIE-LCHlch(7.55, 41.87, 312.96°)
OKLaboklab(21.61% 0.0528 -0.0877)
OKLCHoklch(21.61% 0.102 301.1)
XYZxyz(1.6726, 0.8360, 4.9227)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230540 #224005
analogous
#050540 #230540 #40053F
triadic
#230540 #402305 #054023
tetradic
#230540 #400505 #224005 #053F40
square
#230540 #400505 #224005 #053F40
split-complementary
#230540 #3F4005 #054005
monochromatic
#10021C #10021C #230540 #420979 #610EB2

Accessibility & contrast

On white

17.99
#230540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #230540
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230540#FFFFFF#000000##FFFFFF
##2305401.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#1C1523
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #230540;
/* rgb */ color: rgb(35, 5, 64);
/* oklch */ color: oklch(21.6% 0.102 301.1);
Tailwind
colors: {
  custom: {
    50: '#624975',
    500: '#230540',
    950: '#000000',
  },
}
SCSS
$custom: #230540;
$custom-light: #624975;
$custom-dark: #000000;
JSON
{
  "hex": "#230540",
  "rgb": {
    "r": 35,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 270.508,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21614,
    "c": 0.10232,
    "h": 301.1
  },
  "luminance": 0.00836
}

Semantic roles & 50–950 ramp

primary
#230540
secondary
#508120
accent
#FC2C92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #230540

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

Preview Lab → · Contrast checker → · Palette generator →

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