#30236A#30236A

#30236A is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.8% C 0.118 H 285.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#30236A
RGBrgb(48, 35, 106)
HSLhsl(251, 50%, 28%)
HSVhsv(251, 67%, 42%)
CMYKcmyk(54.7%, 67%, 0%, 58.4%)
CIE-LABlab(19.52, 26.71, -39.60)
CIE-LCHlch(19.52, 47.76, 304.01°)
OKLaboklab(31.75% 0.0324 -0.1135)
OKLCHoklch(31.75% 0.118 285.9)
XYZxyz(4.4207, 2.8708, 13.9541)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30236A #5D6A23
analogous
#23396A #30236A #54236A
triadic
#30236A #6A3023 #236A30
tetradic
#30236A #6A2339 #5D6A23 #236A54
square
#30236A #6A2339 #5D6A23 #236A54
split-complementary
#30236A #6A5423 #396A23
monochromatic
#0A0817 #1B143C #30236A #453298 #5C46C2

Accessibility & contrast

On white

13.34
#30236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#30236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30236A
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30236A#FFFFFF#000000##FFFFFF
##30236A1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#1A3443
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30236a;
/* rgb */ color: rgb(48, 35, 106);
/* oklch */ color: oklch(31.8% 0.118 285.9);
Tailwind
colors: {
  custom: {
    50: '#6e5e95',
    500: '#30236a',
    950: '#000000',
  },
}
SCSS
$custom: #30236a;
$custom-light: #6e5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#30236a",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 250.986,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.11809,
    "h": 285.9
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#30236A
secondary
#8E9D4B
accent
#DA4EC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #30236A

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

Preview Lab → · Contrast checker → · Palette generator →

#30236A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva