#230F5A#230F5A

#230F5A is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.7% C 0.123 H 286.2°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#230F5A
RGBrgb(35, 15, 90)
HSLhsl(256, 71%, 21%)
HSVhsv(256, 83%, 35%)
CMYKcmyk(61.1%, 83.3%, 0%, 64.7%)
CIE-LABlab(12.20, 31.17, -41.02)
CIE-LCHlch(12.20, 51.52, 307.23°)
OKLaboklab(25.72% 0.0343 -0.1181)
OKLCHoklch(25.72% 0.123 286.2)
XYZxyz(2.7089, 1.4370, 9.8055)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230F5A #465A0F
analogous
#0F205A #230F5A #480F5A
triadic
#230F5A #5A230F #0F5A23
tetradic
#230F5A #5A0F20 #465A0F #0F5A48
square
#230F5A #5A0F20 #465A0F #0F5A48
split-complementary
#230F5A #5A480F #205A0F
monochromatic
#0A041A #0F0626 #230F5A #37188E #4C20C3

Accessibility & contrast

On white

16.31
#230F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #230F5A
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230F5A#FFFFFF#000000##FFFFFF
##230F5A1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001E59
Tritanopia (blue-blind)
#082534
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #230f5a;
/* rgb */ color: rgb(35, 15, 90);
/* oklch */ color: oklch(25.7% 0.123 286.2);
Tailwind
colors: {
  custom: {
    50: '#665089',
    500: '#230f5a',
    950: '#000000',
  },
}
SCSS
$custom: #230f5a;
$custom-light: #665089;
$custom-dark: #000000;
JSON
{
  "hex": "#230f5a",
  "rgb": {
    "r": 35,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 256,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25715,
    "c": 0.12301,
    "h": 286.2
  },
  "luminance": 0.01437
}

Semantic roles & 50–950 ramp

primary
#230F5A
secondary
#799431
accent
#EE3ABE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #230F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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