#302151#302151

#302151 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.085 H 295.1°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#302151
RGBrgb(48, 33, 81)
HSLhsl(259, 42%, 22%)
HSVhsv(259, 59%, 32%)
CMYKcmyk(40.7%, 59.3%, 0%, 68.2%)
CIE-LABlab(17.04, 19.85, -27.01)
CIE-LCHlch(17.04, 33.52, 306.31°)
OKLaboklab(29.3% 0.0358 -0.0766)
OKLCHoklch(29.3% 0.085 295.1)
XYZxyz(3.2476, 2.3101, 8.0578)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302151 #425121
analogous
#212A51 #302151 #482151
triadic
#302151 #513021 #215130
tetradic
#302151 #51212A #425121 #215148
square
#302151 #51212A #425121 #215148
split-complementary
#302151 #514821 #2A5121
monochromatic
#0D0916 #160F26 #302151 #4A337C #6444A8

Accessibility & contrast

On white

14.36
#302151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#302151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302151
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302151#FFFFFF#000000##FFFFFF
##3021511.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2A53
Deuteranopia (green-blind)
#102950
Tritanopia (blue-blind)
#282B35
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #302151;
/* rgb */ color: rgb(48, 33, 81);
/* oklch */ color: oklch(29.3% 0.085 295.1);
Tailwind
colors: {
  custom: {
    50: '#6b5c82',
    500: '#302151',
    950: '#000000',
  },
}
SCSS
$custom: #302151;
$custom-light: #6b5c82;
$custom-dark: #000000;
JSON
{
  "hex": "#302151",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 258.75,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29305,
    "c": 0.08452,
    "h": 295.1
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#302151
secondary
#728549
accent
#D256AB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #302151

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

Preview Lab → · Contrast checker → · Palette generator →

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