#302242#302242

#302242 is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.5% C 0.059 H 303.0°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#302242
RGBrgb(48, 34, 66)
HSLhsl(266, 32%, 20%)
HSVhsv(266, 48%, 26%)
CMYKcmyk(27.3%, 48.5%, 0%, 74.1%)
CIE-LABlab(16.33, 14.57, -17.85)
CIE-LCHlch(16.33, 23.04, 309.23°)
OKLaboklab(28.46% 0.0323 -0.0498)
OKLCHoklch(28.46% 0.059 303)
XYZxyz(2.7741, 2.1658, 5.4251)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302242 #344222
analogous
#222442 #302242 #402242
triadic
#302242 #423022 #224230
tetradic
#302242 #422224 #344222 #224240
square
#302242 #422224 #344222 #224240
split-complementary
#302242 #424022 #244222
monochromatic
#0F0A14 #130D1A #302242 #4D376A #6B4C93

Accessibility & contrast

On white

14.65
#302242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#302242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302242
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302242#FFFFFF#000000##FFFFFF
##3022421.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2843
Deuteranopia (green-blind)
#1D2841
Tritanopia (blue-blind)
#2D272E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #302242;
/* rgb */ color: rgb(48, 34, 66);
/* oklch */ color: oklch(28.5% 0.059 303.0);
Tailwind
colors: {
  custom: {
    50: '#695d76',
    500: '#302242',
    950: '#000000',
  },
}
SCSS
$custom: #302242;
$custom-light: #695d76;
$custom-dark: #000000;
JSON
{
  "hex": "#302242",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 266.25,
    "s": 32,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28463,
    "c": 0.05937,
    "h": 303
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#302242
secondary
#63754A
accent
#C8609A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #302242

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

Preview Lab → · Contrast checker → · Palette generator →

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