#230C2F#230C2F

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

Color values

HEX#230C2F
RGBrgb(35, 12, 47)
HSLhsl(279, 59%, 12%)
HSVhsv(279, 74%, 18%)
CMYKcmyk(25.5%, 74.5%, 0%, 81.6%)
CIE-LABlab(7.46, 19.61, -18.43)
CIE-LCHlch(7.46, 26.91, 316.77°)
OKLaboklab(21.06% 0.0471 -0.0519)
OKLCHoklch(21.06% 0.07 312.2)
XYZxyz(1.3376, 0.8255, 2.7777)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230C2F #182F0C
analogous
#120C2F #230C2F #2F0C2A
triadic
#230C2F #2F230C #0C2F23
tetradic
#230C2F #2F120C #182F0C #0C2A2F
square
#230C2F #2F120C #182F0C #0C2A2F
split-complementary
#230C2F #2A2F0C #0C2F12
monochromatic
#120618 #120618 #230C2F #471860 #6C2591

Accessibility & contrast

On white

18.02
#230C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#230C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230C2F
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230C2F#FFFFFF#000000##FFFFFF
##230C2F1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021530
Deuteranopia (green-blind)
#09172E
Tritanopia (blue-blind)
#22131B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #230c2f;
/* rgb */ color: rgb(35, 12, 47);
/* oklch */ color: oklch(21.1% 0.070 312.2);
Tailwind
colors: {
  custom: {
    50: '#5f4c68',
    500: '#230c2f',
    950: '#000000',
  },
}
SCSS
$custom: #230c2f;
$custom-light: #5f4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#230c2f",
  "rgb": {
    "r": 35,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 279.429,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21056,
    "c": 0.07005,
    "h": 312.2
  },
  "luminance": 0.00826
}

Semantic roles & 50–950 ramp

primary
#230C2F
secondary
#426B2C
accent
#E3457B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #230C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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