#230D40#230D40

#230D40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.091 H 298.5°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#230D40
RGBrgb(35, 13, 64)
HSLhsl(266, 66%, 15%)
HSVhsv(266, 80%, 25%)
CMYKcmyk(45.3%, 79.7%, 0%, 74.9%)
CIE-LABlab(9.12, 24.07, -28.09)
CIE-LCHlch(9.12, 36.99, 310.59°)
OKLaboklab(22.72% 0.0436 -0.0802)
OKLCHoklch(22.72% 0.091 298.5)
XYZxyz(1.7622, 1.0153, 4.9526)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230D40 #2A400D
analogous
#0D1140 #230D40 #3C0D40
triadic
#230D40 #40230D #0D4023
tetradic
#230D40 #400D11 #2A400D #0D403C
square
#230D40 #400D11 #2A400D #0D403C
split-complementary
#230D40 #403C0D #11400D
monochromatic
#0E0519 #0E0519 #230D40 #3F1773 #5B22A6

Accessibility & contrast

On white

17.46
#230D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #230D40
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230D40#FFFFFF#000000##FFFFFF
##230D401.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#1C1925
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #230d40;
/* rgb */ color: rgb(35, 13, 64);
/* oklch */ color: oklch(22.7% 0.091 298.5);
Tailwind
colors: {
  custom: {
    50: '#614d75',
    500: '#230d40',
    950: '#000000',
  },
}
SCSS
$custom: #230d40;
$custom-light: #614d75;
$custom-dark: #000000;
JSON
{
  "hex": "#230d40",
  "rgb": {
    "r": 35,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 265.882,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2272,
    "c": 0.09127,
    "h": 298.5
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#230D40
secondary
#5A7C2D
accent
#E93FA0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #230D40

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

Preview Lab → · Contrast checker → · Palette generator →

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