#230B42#230B42

#230B42 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.097 H 298.0°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#230B42
RGBrgb(35, 11, 66)
HSLhsl(266, 71%, 15%)
HSVhsv(266, 83%, 26%)
CMYKcmyk(47%, 83.3%, 0%, 74.1%)
CIE-LABlab(8.91, 25.81, -29.85)
CIE-LCHlch(8.91, 39.46, 310.85°)
OKLaboklab(22.63% 0.0454 -0.0853)
OKLCHoklch(22.63% 0.097 298)
XYZxyz(1.7959, 0.9900, 5.2497)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230B42 #2A420B
analogous
#0B0E42 #230B42 #3F0B42
triadic
#230B42 #42230B #0B4223
tetradic
#230B42 #420B0E #2A420B #0B423F
square
#230B42 #420B0E #2A420B #0B423F
split-complementary
#230B42 #423F0B #0E420B
monochromatic
#0E041A #0E041A #230B42 #3F1476 #5B1CAB

Accessibility & contrast

On white

17.53
#230B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#230B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230B42
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230B42#FFFFFF#000000##FFFFFF
##230B421.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#1B1926
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #230b42;
/* rgb */ color: rgb(35, 11, 66);
/* oklch */ color: oklch(22.6% 0.097 298.0);
Tailwind
colors: {
  custom: {
    50: '#624c77',
    500: '#230b42',
    950: '#000000',
  },
}
SCSS
$custom: #230b42;
$custom-light: #624c77;
$custom-dark: #000000;
JSON
{
  "hex": "#230b42",
  "rgb": {
    "r": 35,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 266.182,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2263,
    "c": 0.09668,
    "h": 298
  },
  "luminance": 0.0099
}

Semantic roles & 50–950 ramp

primary
#230B42
secondary
#5A7F2A
accent
#EE3A9F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #230B42

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

Preview Lab → · Contrast checker → · Palette generator →

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