#230D42#230D42

#230D42 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.094 H 297.4°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#230D42
RGBrgb(35, 13, 66)
HSLhsl(265, 67%, 15%)
HSVhsv(265, 80%, 26%)
CMYKcmyk(47%, 80.3%, 0%, 74.1%)
CIE-LABlab(9.31, 24.68, -29.20)
CIE-LCHlch(9.31, 38.23, 310.21°)
OKLaboklab(22.91% 0.0432 -0.0834)
OKLCHoklch(22.91% 0.094 297.4)
XYZxyz(1.8202, 1.0385, 5.2577)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230D42 #2C420D
analogous
#0D1142 #230D42 #3D0D42
triadic
#230D42 #42230D #0D4223
tetradic
#230D42 #420D11 #2C420D #0D423D
square
#230D42 #420D11 #2C420D #0D423D
split-complementary
#230D42 #423D0D #11420D
monochromatic
#0E051A #0E051A #230D42 #3E1775 #5921A8

Accessibility & contrast

On white

17.39
#230D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#230D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230D42
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230D42#FFFFFF#000000##FFFFFF
##230D421.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#1B1A26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #230d42;
/* rgb */ color: rgb(35, 13, 66);
/* oklch */ color: oklch(22.9% 0.094 297.4);
Tailwind
colors: {
  custom: {
    50: '#624e77',
    500: '#230d42',
    950: '#000000',
  },
}
SCSS
$custom: #230d42;
$custom-light: #624e77;
$custom-dark: #000000;
JSON
{
  "hex": "#230d42",
  "rgb": {
    "r": 35,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 264.906,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22914,
    "c": 0.09395,
    "h": 297.4
  },
  "luminance": 0.01039
}

Semantic roles & 50–950 ramp

primary
#230D42
secondary
#5C7E2D
accent
#EA3EA3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #230D42

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

Preview Lab → · Contrast checker → · Palette generator →

#230D42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva