#30236D#30236D

#30236D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.122 H 285.2°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#30236D
RGBrgb(48, 35, 109)
HSLhsl(251, 51%, 28%)
HSVhsv(251, 68%, 43%)
CMYKcmyk(56%, 67.9%, 0%, 57.3%)
CIE-LABlab(19.78, 27.72, -41.12)
CIE-LCHlch(19.78, 49.59, 303.98°)
OKLaboklab(32.02% 0.0321 -0.118)
OKLCHoklch(32.02% 0.122 285.2)
XYZxyz(4.5794, 2.9343, 14.7901)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30236D #606D23
analogous
#233B6D #30236D #55236D
triadic
#30236D #6D3023 #236D30
tetradic
#30236D #6D233B #606D23 #236D55
square
#30236D #6D233B #606D23 #236D55
split-complementary
#30236D #6D5523 #3B6D23
monochromatic
#0A0717 #1C143F #30236D #44329B #5D47C4

Accessibility & contrast

On white

13.23
#30236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#30236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30236D
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30236D#FFFFFF#000000##FFFFFF
##30236D1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#173544
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #30236d;
/* rgb */ color: rgb(48, 35, 109);
/* oklch */ color: oklch(32.0% 0.122 285.2);
Tailwind
colors: {
  custom: {
    50: '#6f5f97',
    500: '#30236d',
    950: '#000000',
  },
}
SCSS
$custom: #30236d;
$custom-light: #6f5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#30236d",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 250.541,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32022,
    "c": 0.12232,
    "h": 285.2
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#30236D
secondary
#91A04B
accent
#DB4DC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #30236D

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

Preview Lab → · Contrast checker → · Palette generator →

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