#302A40#302A40

#302A40 is a dark, muted violet. Relative luminance 0.027; OKLCH L 30.2% C 0.040 H 296.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#302A40
RGBrgb(48, 42, 64)
HSLhsl(256, 21%, 21%)
HSVhsv(256, 34%, 25%)
CMYKcmyk(25%, 34.4%, 0%, 74.9%)
CIE-LABlab(18.60, 8.37, -12.93)
CIE-LCHlch(18.60, 15.40, 302.93°)
OKLaboklab(30.15% 0.0177 -0.0357)
OKLCHoklch(30.15% 0.04 296.5)
XYZxyz(2.9721, 2.6544, 5.2053)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A40 #3A402A
analogous
#2A2F40 #302A40 #3B2A40
triadic
#302A40 #40302A #2A4030
tetradic
#302A40 #402A2F #3A402A #2A403B
square
#302A40 #402A2F #3A402A #2A403B
split-complementary
#302A40 #403B2A #2F402A
monochromatic
#0E0C12 #14121B #302A40 #4C4265 #675A8A

Accessibility & contrast

On white

13.72
#302A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#302A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A40
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A40#FFFFFF#000000##FFFFFF
##302A401.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252D41
Deuteranopia (green-blind)
#262D3F
Tritanopia (blue-blind)
#2D2E32
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #302a40;
/* rgb */ color: rgb(48, 42, 64);
/* oklch */ color: oklch(30.2% 0.040 296.5);
Tailwind
colors: {
  custom: {
    50: '#686375',
    500: '#302a40',
    950: '#000000',
  },
}
SCSS
$custom: #302a40;
$custom-light: #686375;
$custom-dark: #000000;
JSON
{
  "hex": "#302a40",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 64
  },
  "hsl": {
    "h": 256.364,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30155,
    "c": 0.03984,
    "h": 296.5
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#302A40
secondary
#697155
accent
#BD6AA7
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #302A40

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

Preview Lab → · Contrast checker → · Palette generator →

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