#230C40#230C40

#230C40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.093 H 298.9°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#230C40
RGBrgb(35, 12, 64)
HSLhsl(267, 68%, 15%)
HSVhsv(267, 81%, 25%)
CMYKcmyk(45.3%, 81.2%, 0%, 74.9%)
CIE-LABlab(8.91, 24.65, -28.42)
CIE-LCHlch(8.91, 37.62, 310.93°)
OKLaboklab(22.57% 0.0448 -0.0812)
OKLCHoklch(22.57% 0.093 298.9)
XYZxyz(1.7498, 0.9904, 4.9485)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230C40 #29400C
analogous
#0C0F40 #230C40 #3D0C40
triadic
#230C40 #40230C #0C4023
tetradic
#230C40 #400C0F #29400C #0C403D
square
#230C40 #400C0F #29400C #0C403D
split-complementary
#230C40 #403D0C #0F400C
monochromatic
#0E051A #0E051A #230C40 #3F1674 #5B1FA7

Accessibility & contrast

On white

17.53
#230C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#230C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230C40
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230C40#FFFFFF#000000##FFFFFF
##230C401.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#1C1925
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #230c40;
/* rgb */ color: rgb(35, 12, 64);
/* oklch */ color: oklch(22.6% 0.093 298.9);
Tailwind
colors: {
  custom: {
    50: '#614d75',
    500: '#230c40',
    950: '#000000',
  },
}
SCSS
$custom: #230c40;
$custom-light: #614d75;
$custom-dark: #000000;
JSON
{
  "hex": "#230c40",
  "rgb": {
    "r": 35,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 266.538,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22572,
    "c": 0.09271,
    "h": 298.9
  },
  "luminance": 0.0099
}

Semantic roles & 50–950 ramp

primary
#230C40
secondary
#597C2C
accent
#EB3D9E
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #230C40

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

Preview Lab → · Contrast checker → · Palette generator →

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