#302A3A#302A3A

#302A3A is a dark, muted violet. Relative luminance 0.026; OKLCH L 29.8% C 0.030 H 301.8°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#302A3A
RGBrgb(48, 42, 58)
HSLhsl(263, 16%, 20%)
HSVhsv(263, 28%, 23%)
CMYKcmyk(17.2%, 27.6%, 0%, 77.3%)
CIE-LABlab(18.32, 6.68, -9.22)
CIE-LCHlch(18.32, 11.39, 305.94°)
OKLaboklab(29.84% 0.0156 -0.0252)
OKLCHoklch(29.84% 0.03 301.8)
XYZxyz(2.8105, 2.5898, 4.3540)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A3A #343A2A
analogous
#2A2C3A #302A3A #382A3A
triadic
#302A3A #3A302A #2A3A30
tetradic
#302A3A #3A2A2C #343A2A #2A3A38
square
#302A3A #3A2A2C #343A2A #2A3A38
split-complementary
#302A3A #3A382A #2C3A2A
monochromatic
#0F0D12 #131017 #302A3A #4D445D #6B5D81

Accessibility & contrast

On white

13.83
#302A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#302A3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A3A
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A3A#FFFFFF#000000##FFFFFF
##302A3A1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272D3B
Deuteranopia (green-blind)
#282D3A
Tritanopia (blue-blind)
#2E2C30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #302a3a;
/* rgb */ color: rgb(48, 42, 58);
/* oklch */ color: oklch(29.8% 0.030 301.8);
Tailwind
colors: {
  custom: {
    50: '#686370',
    500: '#302a3a',
    950: '#000000',
  },
}
SCSS
$custom: #302a3a;
$custom-light: #686370;
$custom-dark: #000000;
JSON
{
  "hex": "#302a3a",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 58
  },
  "hsl": {
    "h": 262.5,
    "s": 16,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29843,
    "c": 0.02961,
    "h": 301.8
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#302A3A
secondary
#636B55
accent
#B96F9D
background
#F6F5F6
surface
#EBEAEC
border
#C6C6C7
text
#060507
muted
#7A797A

Preview Lab

Preview with #302A3A

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

Preview Lab → · Contrast checker → · Palette generator →

#302A3A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva