#230C38#230C38

#230C38 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.082 H 304.4°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#230C38
RGBrgb(35, 12, 56)
HSLhsl(271, 65%, 13%)
HSVhsv(271, 79%, 22%)
CMYKcmyk(37.5%, 78.6%, 0%, 78%)
CIE-LABlab(8.18, 22.25, -23.86)
CIE-LCHlch(8.18, 32.63, 312.99°)
OKLaboklab(21.82% 0.0463 -0.0678)
OKLCHoklch(21.82% 0.082 304.4)
XYZxyz(1.5383, 0.9058, 3.8344)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230C38 #21380C
analogous
#0D0C38 #230C38 #380C37
triadic
#230C38 #38230C #0C3823
tetradic
#230C38 #380D0C #21380C #0C3738
square
#230C38 #380D0C #21380C #0C3738
split-complementary
#230C38 #37380C #0C380D
monochromatic
#100519 #100519 #230C38 #42176A #62229D

Accessibility & contrast

On white

17.78
#230C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#230C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230C38
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230C38#FFFFFF#000000##FFFFFF
##230C381.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#011837
Tritanopia (blue-blind)
#1F1620
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #230c38;
/* rgb */ color: rgb(35, 12, 56);
/* oklch */ color: oklch(21.8% 0.082 304.4);
Tailwind
colors: {
  custom: {
    50: '#604c6f',
    500: '#230c38',
    950: '#000000',
  },
}
SCSS
$custom: #230c38;
$custom-light: #604c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#230c38",
  "rgb": {
    "r": 35,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 271.364,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21822,
    "c": 0.08209,
    "h": 304.4
  },
  "luminance": 0.00906
}

Semantic roles & 50–950 ramp

primary
#230C38
secondary
#4E742C
accent
#E84090
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #230C38

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

Preview Lab → · Contrast checker → · Palette generator →

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