#230C5F#230C5F

#230C5F is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.9% C 0.132 H 285.2°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#230C5F
RGBrgb(35, 12, 95)
HSLhsl(257, 78%, 21%)
HSVhsv(257, 87%, 37%)
CMYKcmyk(63.2%, 87.4%, 0%, 62.7%)
CIE-LABlab(12.26, 34.23, -44.28)
CIE-LCHlch(12.26, 55.97, 307.70°)
OKLaboklab(25.93% 0.0346 -0.1276)
OKLCHoklch(25.93% 0.132 285.2)
XYZxyz(2.8895, 1.4463, 10.9512)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230C5F #485F0C
analogous
#0C1E5F #230C5F #4C0C5F
triadic
#230C5F #5F230C #0C5F23
tetradic
#230C5F #5F0C1E #485F0C #0C5F4C
square
#230C5F #5F0C1E #485F0C #0C5F4C
split-complementary
#230C5F #5F4C0C #1E5F0C
monochromatic
#0A031B #0F0529 #230C5F #371395 #4B1ACC

Accessibility & contrast

On white

16.29
#230C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #230C5F
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230C5F#FFFFFF#000000##FFFFFF
##230C5F1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#012636
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #230c5f;
/* rgb */ color: rgb(35, 12, 95);
/* oklch */ color: oklch(25.9% 0.132 285.2);
Tailwind
colors: {
  custom: {
    50: '#674f8d',
    500: '#230c5f',
    950: '#000000',
  },
}
SCSS
$custom: #230c5f;
$custom-light: #674f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#230c5f",
  "rgb": {
    "r": 35,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 256.627,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25928,
    "c": 0.1322,
    "h": 285.2
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#230C5F
secondary
#7B992D
accent
#F434BF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #230C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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