#302154#302154

#302154 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.5% C 0.089 H 293.8°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#302154
RGBrgb(48, 33, 84)
HSLhsl(258, 44%, 23%)
HSVhsv(258, 61%, 33%)
CMYKcmyk(42.9%, 60.7%, 0%, 67.1%)
CIE-LABlab(17.25, 20.80, -28.69)
CIE-LCHlch(17.25, 35.43, 305.95°)
OKLaboklab(29.54% 0.0359 -0.0815)
OKLCHoklch(29.54% 0.089 293.8)
XYZxyz(3.3626, 2.3561, 8.6634)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302154 #455421
analogous
#212B54 #302154 #492154
triadic
#302154 #543021 #215430
tetradic
#302154 #54212B #455421 #215449
square
#302154 #54212B #455421 #215449
split-complementary
#302154 #544921 #2B5421
monochromatic
#0D0916 #171028 #302154 #493280 #6244AC

Accessibility & contrast

On white

14.27
#302154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302154
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302154#FFFFFF#000000##FFFFFF
##3021541.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082B56
Deuteranopia (green-blind)
#0C2A53
Tritanopia (blue-blind)
#272C37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #302154;
/* rgb */ color: rgb(48, 33, 84);
/* oklch */ color: oklch(29.5% 0.089 293.8);
Tailwind
colors: {
  custom: {
    50: '#6b5d84',
    500: '#302154',
    950: '#000000',
  },
}
SCSS
$custom: #302154;
$custom-light: #6b5d84;
$custom-dark: #000000;
JSON
{
  "hex": "#302154",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 257.647,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29536,
    "c": 0.08905,
    "h": 293.8
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#302154
secondary
#768849
accent
#D354AE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #302154

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

Preview Lab → · Contrast checker → · Palette generator →

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