#230F42#230F42

#230F42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.091 H 296.6°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#230F42
RGBrgb(35, 15, 66)
HSLhsl(264, 63%, 16%)
HSVhsv(264, 77%, 26%)
CMYKcmyk(47%, 77.3%, 0%, 74.1%)
CIE-LABlab(9.74, 23.49, -28.50)
CIE-LCHlch(9.74, 36.93, 309.50°)
OKLaboklab(23.22% 0.0408 -0.0814)
OKLCHoklch(23.22% 0.091 296.6)
XYZxyz(1.8471, 1.0923, 5.2667)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230F42 #2E420F
analogous
#0F1442 #230F42 #3C0F42
triadic
#230F42 #42230F #0F4223
tetradic
#230F42 #420F14 #2E420F #0F423C
square
#230F42 #420F14 #2E420F #0F423C
split-complementary
#230F42 #423C0F #14420F
monochromatic
#0D0619 #0D0619 #230F42 #3D1A74 #5826A6

Accessibility & contrast

On white

17.24
#230F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#230F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230F42
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230F42#FFFFFF#000000##FFFFFF
##230F421.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#1B1B27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #230f42;
/* rgb */ color: rgb(35, 15, 66);
/* oklch */ color: oklch(23.2% 0.091 296.6);
Tailwind
colors: {
  custom: {
    50: '#614f77',
    500: '#230f42',
    950: '#000000',
  },
}
SCSS
$custom: #230f42;
$custom-light: #614f77;
$custom-dark: #000000;
JSON
{
  "hex": "#230f42",
  "rgb": {
    "r": 35,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 263.529,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2322,
    "c": 0.09104,
    "h": 296.6
  },
  "luminance": 0.01092
}

Semantic roles & 50–950 ramp

primary
#230F42
secondary
#5F7C30
accent
#E642A6
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #230F42

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

Preview Lab → · Contrast checker → · Palette generator →

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