#230F5D#230F5D

#230F5D is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.127 H 285.2°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#230F5D
RGBrgb(35, 15, 93)
HSLhsl(255, 72%, 21%)
HSVhsv(255, 84%, 36%)
CMYKcmyk(62.4%, 83.9%, 0%, 63.5%)
CIE-LABlab(12.54, 32.13, -42.49)
CIE-LCHlch(12.54, 53.27, 307.10°)
OKLaboklab(26.05% 0.0333 -0.1224)
OKLCHoklch(26.05% 0.127 285.2)
XYZxyz(2.8391, 1.4891, 10.4916)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230F5D #495D0F
analogous
#0F225D #230F5D #4A0F5D
triadic
#230F5D #5D230F #0F5D23
tetradic
#230F5D #5D0F22 #495D0F #0F5D4A
square
#230F5D #5D0F22 #495D0F #0F5D4A
split-complementary
#230F5D #5D4A0F #225D0F
monochromatic
#0A041A #0F0628 #230F5D #371792 #4B20C6

Accessibility & contrast

On white

16.18
#230F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#230F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230F5D
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230F5D#FFFFFF#000000##FFFFFF
##230F5D1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#042636
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #230f5d;
/* rgb */ color: rgb(35, 15, 93);
/* oklch */ color: oklch(26.1% 0.127 285.2);
Tailwind
colors: {
  custom: {
    50: '#67508c',
    500: '#230f5d',
    950: '#000000',
  },
}
SCSS
$custom: #230f5d;
$custom-light: #67508c;
$custom-dark: #000000;
JSON
{
  "hex": "#230f5d",
  "rgb": {
    "r": 35,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 255.385,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26051,
    "c": 0.12685,
    "h": 285.2
  },
  "luminance": 0.01489
}

Semantic roles & 50–950 ramp

primary
#230F5D
secondary
#7D9631
accent
#EF39C0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #230F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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