#230340#230340

#230340 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.105 H 301.6°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#230340
RGBrgb(35, 3, 64)
HSLhsl(271, 91%, 13%)
HSVhsv(271, 95%, 25%)
CMYKcmyk(45.3%, 95.3%, 0%, 74.9%)
CIE-LABlab(7.16, 29.66, -31.28)
CIE-LCHlch(7.16, 43.11, 313.48°)
OKLaboklab(21.33% 0.0552 -0.0896)
OKLCHoklch(21.33% 0.105 301.6)
XYZxyz(1.6509, 0.7926, 4.9155)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230340 #204003
analogous
#040340 #230340 #40033E
triadic
#230340 #402303 #034023
tetradic
#230340 #400403 #204003 #033E40
square
#230340 #400403 #204003 #033E40
split-complementary
#230340 #3E4003 #034004
monochromatic
#10011D #10011D #230340 #43067A #6308B5

Accessibility & contrast

On white

18.13
#230340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#230340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230340
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230340#FFFFFF#000000##FFFFFF
##2303401.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#1C1422
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #230340;
/* rgb */ color: rgb(35, 3, 64);
/* oklch */ color: oklch(21.3% 0.105 301.6);
Tailwind
colors: {
  custom: {
    50: '#624875',
    500: '#230340',
    950: '#000000',
  },
}
SCSS
$custom: #230340;
$custom-light: #624875;
$custom-dark: #000000;
JSON
{
  "hex": "#230340",
  "rgb": {
    "r": 35,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 271.475,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21328,
    "c": 0.10527,
    "h": 301.6
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#230340
secondary
#4D821D
accent
#FF298F
background
#F6F4F7
surface
#EBE6ED
border
#C6C2C8
text
#050008
muted
#7A777B

Preview Lab

Preview with #230340

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

Preview Lab → · Contrast checker → · Palette generator →

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