#302168#302168

#302168 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.118 H 287.2°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#302168
RGBrgb(48, 33, 104)
HSLhsl(253, 52%, 27%)
HSVhsv(253, 68%, 41%)
CMYKcmyk(53.8%, 68.3%, 0%, 59.2%)
CIE-LABlab(18.87, 27.33, -39.35)
CIE-LCHlch(18.87, 47.91, 304.78°)
OKLaboklab(31.22% 0.0349 -0.1128)
OKLCHoklch(31.22% 0.118 287.2)
XYZxyz(4.2607, 2.7154, 13.3936)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302168 #596821
analogous
#213668 #302168 #542168
triadic
#302168 #683021 #216830
tetradic
#302168 #682136 #596821 #216854
square
#302168 #682136 #596821 #216854
split-complementary
#302168 #685421 #366821
monochromatic
#0B0717 #1B123A #302168 #453096 #5C41C3

Accessibility & contrast

On white

13.61
#302168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#302168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302168
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302168#FFFFFF#000000##FFFFFF
##3021681.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002C67
Tritanopia (blue-blind)
#1B3241
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #302168;
/* rgb */ color: rgb(48, 33, 104);
/* oklch */ color: oklch(31.2% 0.118 287.2);
Tailwind
colors: {
  custom: {
    50: '#6e5d94',
    500: '#302168',
    950: '#000000',
  },
}
SCSS
$custom: #302168;
$custom-light: #6e5d94;
$custom-dark: #000000;
JSON
{
  "hex": "#302168",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 252.676,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31224,
    "c": 0.1181,
    "h": 287.2
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#302168
secondary
#8A9C49
accent
#DB4DBD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #302168

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

Preview Lab → · Contrast checker → · Palette generator →

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