#302A3C#302A3C

#302A3C is a dark, muted violet. Relative luminance 0.026; OKLCH L 29.9% C 0.033 H 299.7°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#302A3C
RGBrgb(48, 42, 60)
HSLhsl(260, 18%, 20%)
HSVhsv(260, 30%, 24%)
CMYKcmyk(20%, 30%, 0%, 76.5%)
CIE-LABlab(18.41, 7.24, -10.46)
CIE-LCHlch(18.41, 12.72, 304.66°)
OKLaboklab(29.94% 0.0164 -0.0287)
OKLCHoklch(29.94% 0.033 299.7)
XYZxyz(2.8623, 2.6105, 4.6272)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A3C #363C2A
analogous
#2A2D3C #302A3C #392A3C
triadic
#302A3C #3C302A #2A3C30
tetradic
#302A3C #3C2A2D #363C2A #2A3C39
square
#302A3C #3C2A2D #363C2A #2A3C39
split-complementary
#302A3C #3C392A #2D3C2A
monochromatic
#0E0D12 #131118 #302A3C #4D4360 #6A5C84

Accessibility & contrast

On white

13.80
#302A3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302A3C
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A3C#FFFFFF#000000##FFFFFF
##302A3C1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262D3D
Deuteranopia (green-blind)
#272D3B
Tritanopia (blue-blind)
#2E2D30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #302a3c;
/* rgb */ color: rgb(48, 42, 60);
/* oklch */ color: oklch(29.9% 0.033 299.7);
Tailwind
colors: {
  custom: {
    50: '#686371',
    500: '#302a3c',
    950: '#000000',
  },
}
SCSS
$custom: #302a3c;
$custom-light: #686371;
$custom-dark: #000000;
JSON
{
  "hex": "#302a3c",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 60
  },
  "hsl": {
    "h": 260,
    "s": 17.647,
    "l": 20
  },
  "oklch": {
    "l": 0.29944,
    "c": 0.03301,
    "h": 299.7
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#302A3C
secondary
#656D55
accent
#BA6DA1
background
#F6F5F6
surface
#EBEAEC
border
#C6C6C7
text
#060507
muted
#7A797A

Preview Lab

Preview with #302A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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