#230F2F#230F2F

#230F2F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.064 H 311.0°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#230F2F
RGBrgb(35, 15, 47)
HSLhsl(278, 52%, 12%)
HSVhsv(278, 68%, 18%)
CMYKcmyk(25.5%, 68.1%, 0%, 81.6%)
CIE-LABlab(8.17, 17.72, -17.30)
CIE-LCHlch(8.17, 24.77, 315.69°)
OKLaboklab(21.58% 0.0422 -0.0485)
OKLCHoklch(21.58% 0.064 311)
XYZxyz(1.3770, 0.9042, 2.7908)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230F2F #1B2F0F
analogous
#130F2F #230F2F #2F0F2B
triadic
#230F2F #2F230F #0F2F23
tetradic
#230F2F #2F130F #1B2F0F #0F2B2F
square
#230F2F #2F130F #1B2F0F #0F2B2F
split-complementary
#230F2F #2B2F0F #0F2F13
monochromatic
#110717 #110717 #230F2F #461E5D #682D8C

Accessibility & contrast

On white

17.78
#230F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #230F2F
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230F2F#FFFFFF#000000##FFFFFF
##230F2F1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061730
Deuteranopia (green-blind)
#0C182E
Tritanopia (blue-blind)
#22151D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #230f2f;
/* rgb */ color: rgb(35, 15, 47);
/* oklch */ color: oklch(21.6% 0.064 311.0);
Tailwind
colors: {
  custom: {
    50: '#5f4e67',
    500: '#230f2f',
    950: '#000000',
  },
}
SCSS
$custom: #230f2f;
$custom-light: #5f4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#230f2f",
  "rgb": {
    "r": 35,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 277.5,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21583,
    "c": 0.06431,
    "h": 311
  },
  "luminance": 0.00904
}

Semantic roles & 50–950 ramp

primary
#230F2F
secondary
#466931
accent
#DB4D82
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #230F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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