#230338#230338

#230338 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.097 H 307.3°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#230338
RGBrgb(35, 3, 56)
HSLhsl(276, 90%, 12%)
HSVhsv(276, 95%, 22%)
CMYKcmyk(37.5%, 94.6%, 0%, 78%)
CIE-LABlab(6.40, 27.17, -26.75)
CIE-LCHlch(6.40, 38.13, 315.44°)
OKLaboklab(20.48% 0.0586 -0.0768)
OKLCHoklch(20.48% 0.097 307.3)
XYZxyz(1.4394, 0.7080, 3.8014)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230338 #183803
analogous
#080338 #230338 #380333
triadic
#230338 #382303 #033823
tetradic
#230338 #380803 #183803 #033338
square
#230338 #380803 #183803 #033338
split-complementary
#230338 #333803 #033808
monochromatic
#12021D #12021D #230338 #470672 #6C09AC

Accessibility & contrast

On white

18.40
#230338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#230338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230338
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230338#FFFFFF#000000##FFFFFF
##2303381.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#1F101E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #230338;
/* rgb */ color: rgb(35, 3, 56);
/* oklch */ color: oklch(20.5% 0.097 307.3);
Tailwind
colors: {
  custom: {
    50: '#61476f',
    500: '#230338',
    950: '#000000',
  },
}
SCSS
$custom: #230338;
$custom-light: #61476f;
$custom-dark: #000000;
JSON
{
  "hex": "#230338",
  "rgb": {
    "r": 35,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 276.226,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20479,
    "c": 0.09656,
    "h": 307.3
  },
  "luminance": 0.00708
}

Semantic roles & 50–950 ramp

primary
#230338
secondary
#427B1C
accent
#FF297E
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #230338

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

Preview Lab → · Contrast checker → · Palette generator →

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