#230F2C#230F2C

#230F2C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.4% C 0.060 H 314.3°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#230F2C
RGBrgb(35, 15, 44)
HSLhsl(281, 49%, 12%)
HSVhsv(281, 66%, 17%)
CMYKcmyk(20.5%, 65.9%, 0%, 82.7%)
CIE-LABlab(7.96, 16.88, -15.41)
CIE-LCHlch(7.96, 22.85, 317.60°)
OKLaboklab(21.36% 0.042 -0.043)
OKLCHoklch(21.36% 0.06 314.3)
XYZxyz(1.3185, 0.8809, 2.4830)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230F2C #182C0F
analogous
#150F2C #230F2C #2C0F27
triadic
#230F2C #2C230F #0F2C23
tetradic
#230F2C #2C150F #182C0F #0F272C
square
#230F2C #2C150F #182C0F #0F272C
split-complementary
#230F2C #272C0F #0F2C15
monochromatic
#120817 #120817 #230F2C #471F5A #6C2E87

Accessibility & contrast

On white

17.85
#230F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#230F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230F2C
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230F2C#FFFFFF#000000##FFFFFF
##230F2C1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08162D
Deuteranopia (green-blind)
#0E182B
Tritanopia (blue-blind)
#22141B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #230f2c;
/* rgb */ color: rgb(35, 15, 44);
/* oklch */ color: oklch(21.4% 0.060 314.3);
Tailwind
colors: {
  custom: {
    50: '#5f4e65',
    500: '#230f2c',
    950: '#000000',
  },
}
SCSS
$custom: #230f2c;
$custom-light: #5f4e65;
$custom-dark: #000000;
JSON
{
  "hex": "#230f2c",
  "rgb": {
    "r": 35,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 281.379,
    "s": 49.153,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21361,
    "c": 0.06009,
    "h": 314.3
  },
  "luminance": 0.00881
}

Semantic roles & 50–950 ramp

primary
#230F2C
secondary
#426531
accent
#D94F7A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #230F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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