#230C42#230C42

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

Color values

HEX#230C42
RGBrgb(35, 12, 66)
HSLhsl(266, 69%, 15%)
HSVhsv(266, 82%, 26%)
CMYKcmyk(47%, 81.8%, 0%, 74.1%)
CIE-LABlab(9.10, 25.26, -29.53)
CIE-LCHlch(9.10, 38.86, 310.54°)
OKLaboklab(22.77% 0.0443 -0.0844)
OKLCHoklch(22.77% 0.095 297.7)
XYZxyz(1.8077, 1.0136, 5.2536)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230C42 #2B420C
analogous
#0C1042 #230C42 #3E0C42
triadic
#230C42 #42230C #0C4223
tetradic
#230C42 #420C10 #2B420C #0C423E
square
#230C42 #420C10 #2B420C #0C423E
split-complementary
#230C42 #423E0C #10420C
monochromatic
#0E051A #0E051A #230C42 #3E1576 #5A1FAA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##230C42#FFFFFF#000000##FFFFFF
##230C421.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)
#001A44
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#1B1A26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #230c42;
/* rgb */ color: rgb(35, 12, 66);
/* oklch */ color: oklch(22.8% 0.095 297.7);
Tailwind
colors: {
  custom: {
    50: '#624d77',
    500: '#230c42',
    950: '#000000',
  },
}
SCSS
$custom: #230c42;
$custom-light: #624d77;
$custom-dark: #000000;
JSON
{
  "hex": "#230c42",
  "rgb": {
    "r": 35,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 265.556,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22769,
    "c": 0.09535,
    "h": 297.7
  },
  "luminance": 0.01014
}

Semantic roles & 50–950 ramp

primary
#230C42
secondary
#5B7E2C
accent
#EC3CA1
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #230C42

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

Preview Lab → · Contrast checker → · Palette generator →

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