#230842#230842

#230842 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.101 H 298.9°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#230842
RGBrgb(35, 8, 66)
HSLhsl(268, 78%, 15%)
HSVhsv(268, 88%, 26%)
CMYKcmyk(47%, 87.9%, 0%, 74.1%)
CIE-LABlab(8.34, 27.43, -30.77)
CIE-LCHlch(8.34, 41.22, 311.71°)
OKLaboklab(22.24% 0.0486 -0.088)
OKLCHoklch(22.24% 0.101 298.9)
XYZxyz(1.7631, 0.9243, 5.2387)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230842 #274208
analogous
#080A42 #230842 #400842
triadic
#230842 #422308 #084223
tetradic
#230842 #42080A #274208 #084240
square
#230842 #42080A #274208 #084240
split-complementary
#230842 #424008 #0A4208
monochromatic
#0E031B #0E031B #230842 #400F79 #5D15AF

Accessibility & contrast

On white

17.72
#230842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#230842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230842
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230842#FFFFFF#000000##FFFFFF
##2308421.0017.721.1817.72
#FFFFFF17.721.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001841
Tritanopia (blue-blind)
#1B1825
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #230842;
/* rgb */ color: rgb(35, 8, 66);
/* oklch */ color: oklch(22.2% 0.101 298.9);
Tailwind
colors: {
  custom: {
    50: '#624b77',
    500: '#230842',
    950: '#000000',
  },
}
SCSS
$custom: #230842;
$custom-light: #624b77;
$custom-dark: #000000;
JSON
{
  "hex": "#230842",
  "rgb": {
    "r": 35,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 267.931,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22235,
    "c": 0.10056,
    "h": 298.9
  },
  "luminance": 0.00924
}

Semantic roles & 50–950 ramp

primary
#230842
secondary
#568025
accent
#F5339B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #230842

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

Preview Lab → · Contrast checker → · Palette generator →

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