#230F5B#230F5B

#230F5B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.8% C 0.124 H 285.9°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#230F5B
RGBrgb(35, 15, 91)
HSLhsl(256, 72%, 21%)
HSVhsv(256, 84%, 36%)
CMYKcmyk(61.5%, 83.5%, 0%, 64.3%)
CIE-LABlab(12.31, 31.49, -41.51)
CIE-LCHlch(12.31, 52.10, 307.18°)
OKLaboklab(25.83% 0.034 -0.1196)
OKLCHoklch(25.83% 0.124 285.9)
XYZxyz(2.7517, 1.4541, 10.0312)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230F5B #475B0F
analogous
#0F215B #230F5B #490F5B
triadic
#230F5B #5B230F #0F5B23
tetradic
#230F5B #5B0F21 #475B0F #0F5B49
square
#230F5B #5B0F21 #475B0F #0F5B49
split-complementary
#230F5B #5B490F #215B0F
monochromatic
#0A041A #0F0626 #230F5B #371890 #4B20C4

Accessibility & contrast

On white

16.27
#230F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#230F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230F5B
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230F5B#FFFFFF#000000##FFFFFF
##230F5B1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#072535
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #230f5b;
/* rgb */ color: rgb(35, 15, 91);
/* oklch */ color: oklch(25.8% 0.124 285.9);
Tailwind
colors: {
  custom: {
    50: '#66508a',
    500: '#230f5b',
    950: '#000000',
  },
}
SCSS
$custom: #230f5b;
$custom-light: #66508a;
$custom-dark: #000000;
JSON
{
  "hex": "#230f5b",
  "rgb": {
    "r": 35,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 255.789,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25826,
    "c": 0.12429,
    "h": 285.9
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#230F5B
secondary
#7A9531
accent
#EE39BF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #230F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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