#302A46#302A46

#302A46 is a dark, muted violet. Relative luminance 0.027; OKLCH L 30.5% C 0.050 H 293.0°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#302A46
RGBrgb(48, 42, 70)
HSLhsl(253, 25%, 22%)
HSVhsv(253, 40%, 27%)
CMYKcmyk(31.4%, 40%, 0%, 72.5%)
CIE-LABlab(18.91, 10.15, -16.55)
CIE-LCHlch(18.91, 19.42, 301.52°)
OKLaboklab(30.49% 0.0196 -0.0461)
OKLCHoklch(30.49% 0.05 293)
XYZxyz(3.1521, 2.7265, 6.1534)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A46 #40462A
analogous
#2A3246 #302A46 #3E2A46
triadic
#302A46 #46302A #2A4630
tetradic
#302A46 #462A32 #40462A #2A463E
square
#302A46 #462A32 #40462A #2A463E
split-complementary
#302A46 #463E2A #32462A
monochromatic
#0D0B13 #161320 #302A46 #4A416C #645893

Accessibility & contrast

On white

13.59
#302A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#302A46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A46
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A46#FFFFFF#000000##FFFFFF
##302A461.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222E47
Deuteranopia (green-blind)
#232D45
Tritanopia (blue-blind)
#2B2F34
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #302a46;
/* rgb */ color: rgb(48, 42, 70);
/* oklch */ color: oklch(30.5% 0.050 293.0);
Tailwind
colors: {
  custom: {
    50: '#696379',
    500: '#302a46',
    950: '#000000',
  },
}
SCSS
$custom: #302a46;
$custom-light: #696379;
$custom-dark: #000000;
JSON
{
  "hex": "#302a46",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 70
  },
  "hsl": {
    "h": 252.857,
    "s": 25,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30494,
    "c": 0.05007,
    "h": 293
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#302A46
secondary
#707854
accent
#C166AE
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#060509
muted
#7A797B

Preview Lab

Preview with #302A46

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

Preview Lab → · Contrast checker → · Palette generator →

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