#230B31#230B31

#230B31 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.074 H 310.6°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#230B31
RGBrgb(35, 11, 49)
HSLhsl(278, 63%, 12%)
HSVhsv(278, 78%, 19%)
CMYKcmyk(28.6%, 77.6%, 0%, 80.8%)
CIE-LABlab(7.39, 20.77, -20.01)
CIE-LCHlch(7.39, 28.84, 316.06°)
OKLaboklab(21.06% 0.0485 -0.0565)
OKLCHoklch(21.06% 0.074 310.6)
XYZxyz(1.3671, 0.8184, 2.9911)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230B31 #19310B
analogous
#100B31 #230B31 #310B2C
triadic
#230B31 #31230B #0B3123
tetradic
#230B31 #31100B #19310B #0B2C31
square
#230B31 #31100B #19310B #0B2C31
split-complementary
#230B31 #2C310B #0B3110
monochromatic
#120619 #120619 #230B31 #471663 #6A2195

Accessibility & contrast

On white

18.05
#230B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#230B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230B31
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230B31#FFFFFF#000000##FFFFFF
##230B311.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#071730
Tritanopia (blue-blind)
#21131C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #230b31;
/* rgb */ color: rgb(35, 11, 49);
/* oklch */ color: oklch(21.1% 0.074 310.6);
Tailwind
colors: {
  custom: {
    50: '#604c69',
    500: '#230b31',
    950: '#000000',
  },
}
SCSS
$custom: #230b31;
$custom-light: #604c69;
$custom-dark: #000000;
JSON
{
  "hex": "#230b31",
  "rgb": {
    "r": 35,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 277.895,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21058,
    "c": 0.07448,
    "h": 310.6
  },
  "luminance": 0.00818
}

Semantic roles & 50–950 ramp

primary
#230B31
secondary
#436E2A
accent
#E6417E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #230B31

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

Preview Lab → · Contrast checker → · Palette generator →

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