#302155#302155

#302155 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.6% C 0.091 H 293.4°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#302155
RGBrgb(48, 33, 85)
HSLhsl(257, 44%, 23%)
HSVhsv(257, 61%, 33%)
CMYKcmyk(43.5%, 61.2%, 0%, 66.7%)
CIE-LABlab(17.33, 21.12, -29.24)
CIE-LCHlch(17.33, 36.07, 305.84°)
OKLaboklab(29.61% 0.036 -0.0831)
OKLCHoklch(29.61% 0.091 293.4)
XYZxyz(3.4020, 2.3719, 8.8711)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302155 #465521
analogous
#212C55 #302155 #4A2155
triadic
#302155 #553021 #215530
tetradic
#302155 #55212C #465521 #21554A
square
#302155 #55212C #465521 #21554A
split-complementary
#302155 #554A21 #2C5521
monochromatic
#0C0916 #171029 #302155 #493281 #6243AD

Accessibility & contrast

On white

14.24
#302155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302155
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302155#FFFFFF#000000##FFFFFF
##3021551.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062B57
Deuteranopia (green-blind)
#0B2A54
Tritanopia (blue-blind)
#262C37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #302155;
/* rgb */ color: rgb(48, 33, 85);
/* oklch */ color: oklch(29.6% 0.091 293.4);
Tailwind
colors: {
  custom: {
    50: '#6b5d85',
    500: '#302155',
    950: '#000000',
  },
}
SCSS
$custom: #302155;
$custom-light: #6b5d85;
$custom-dark: #000000;
JSON
{
  "hex": "#302155",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 257.308,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29614,
    "c": 0.09055,
    "h": 293.4
  },
  "luminance": 0.02372
}

Semantic roles & 50–950 ramp

primary
#302155
secondary
#778949
accent
#D454AF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #302155

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

Preview Lab → · Contrast checker → · Palette generator →

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