#302452#302452

#302452 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.081 H 292.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#302452
RGBrgb(48, 36, 82)
HSLhsl(256, 39%, 23%)
HSVhsv(256, 56%, 32%)
CMYKcmyk(41.5%, 56.1%, 0%, 67.8%)
CIE-LABlab(17.91, 18.11, -26.28)
CIE-LCHlch(17.91, 31.92, 304.58°)
OKLaboklab(29.98% 0.0314 -0.0744)
OKLCHoklch(29.98% 0.081 292.9)
XYZxyz(3.3724, 2.4992, 8.2857)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302452 #465224
analogous
#242F52 #302452 #472452
triadic
#302452 #523024 #245230
tetradic
#302452 #52242F #465224 #245247
square
#302452 #52242F #465224 #245247
split-complementary
#302452 #524724 #2F5224
monochromatic
#0C0915 #171127 #302452 #49377D #6249A7

Accessibility & contrast

On white

14.00
#302452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#302452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302452
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302452#FFFFFF#000000##FFFFFF
##3024521.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#142B51
Tritanopia (blue-blind)
#272D37
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #302452;
/* rgb */ color: rgb(48, 36, 82);
/* oklch */ color: oklch(30.0% 0.081 292.9);
Tailwind
colors: {
  custom: {
    50: '#6b5f83',
    500: '#302452',
    950: '#000000',
  },
}
SCSS
$custom: #302452;
$custom-light: #6b5f83;
$custom-dark: #000000;
JSON
{
  "hex": "#302452",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 255.652,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2998,
    "c": 0.08078,
    "h": 292.9
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#302452
secondary
#77864C
accent
#CF59B0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #302452

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

Preview Lab → · Contrast checker → · Palette generator →

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