#230542#230542

#230542 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.105 H 299.8°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#230542
RGBrgb(35, 5, 66)
HSLhsl(270, 86%, 14%)
HSVhsv(270, 92%, 26%)
CMYKcmyk(47%, 92.4%, 0%, 74.1%)
CIE-LABlab(7.76, 29.12, -31.72)
CIE-LCHlch(7.76, 43.06, 312.55°)
OKLaboklab(21.83% 0.052 -0.0908)
OKLCHoklch(21.83% 0.105 299.8)
XYZxyz(1.7305, 0.8592, 5.2279)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230542 #244205
analogous
#050642 #230542 #420542
triadic
#230542 #422305 #054223
tetradic
#230542 #420506 #244205 #054242
square
#230542 #420506 #244205 #054242
split-complementary
#230542 #424205 #064205
monochromatic
#0F021C #0F021C #230542 #41097B #5F0EB4

Accessibility & contrast

On white

17.92
#230542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#230542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230542
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230542#FFFFFF#000000##FFFFFF
##2305421.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#1B1624
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #230542;
/* rgb */ color: rgb(35, 5, 66);
/* oklch */ color: oklch(21.8% 0.105 299.8);
Tailwind
colors: {
  custom: {
    50: '#624977',
    500: '#230542',
    950: '#000000',
  },
}
SCSS
$custom: #230542;
$custom-light: #624977;
$custom-dark: #000000;
JSON
{
  "hex": "#230542",
  "rgb": {
    "r": 35,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 269.508,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21829,
    "c": 0.10462,
    "h": 299.8
  },
  "luminance": 0.00859
}

Semantic roles & 50–950 ramp

primary
#230542
secondary
#528220
accent
#FC2C96
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #230542

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

Preview Lab → · Contrast checker → · Palette generator →

#230542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva