#302153#302153

#302153 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.088 H 294.2°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#302153
RGBrgb(48, 33, 83)
HSLhsl(258, 43%, 23%)
HSVhsv(258, 60%, 33%)
CMYKcmyk(42.2%, 60.2%, 0%, 67.5%)
CIE-LABlab(17.18, 20.48, -28.13)
CIE-LCHlch(17.18, 34.79, 306.06°)
OKLaboklab(29.46% 0.0359 -0.0798)
OKLCHoklch(29.46% 0.088 294.2)
XYZxyz(3.3237, 2.3406, 8.4586)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302153 #445321
analogous
#212B53 #302153 #492153
triadic
#302153 #533021 #215330
tetradic
#302153 #53212B #445321 #215349
square
#302153 #53212B #445321 #215349
split-complementary
#302153 #534921 #2B5321
monochromatic
#0D0916 #171027 #302153 #49327F #6344AB

Accessibility & contrast

On white

14.30
#302153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#302153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302153
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302153#FFFFFF#000000##FFFFFF
##3021531.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092B55
Deuteranopia (green-blind)
#0E2952
Tritanopia (blue-blind)
#272B36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #302153;
/* rgb */ color: rgb(48, 33, 83);
/* oklch */ color: oklch(29.5% 0.088 294.2);
Tailwind
colors: {
  custom: {
    50: '#6b5c84',
    500: '#302153',
    950: '#000000',
  },
}
SCSS
$custom: #302153;
$custom-light: #6b5c84;
$custom-dark: #000000;
JSON
{
  "hex": "#302153",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 258,
    "s": 43.103,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29458,
    "c": 0.08754,
    "h": 294.2
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#302153
secondary
#748749
accent
#D355AD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #302153

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

Preview Lab → · Contrast checker → · Palette generator →

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