#302A4E#302A4E

#302A4E is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.0% C 0.064 H 289.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#302A4E
RGBrgb(48, 42, 78)
HSLhsl(250, 30%, 24%)
HSVhsv(250, 46%, 31%)
CMYKcmyk(38.5%, 46.2%, 0%, 69.4%)
CIE-LABlab(19.37, 12.65, -21.27)
CIE-LCHlch(19.37, 24.75, 300.74°)
OKLaboklab(30.99% 0.0215 -0.0598)
OKLCHoklch(30.99% 0.064 289.8)
XYZxyz(3.4217, 2.8343, 7.5730)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A4E #484E2A
analogous
#2A364E #302A4E #422A4E
triadic
#302A4E #4E302A #2A4E30
tetradic
#302A4E #4E2A36 #484E2A #2A4E42
square
#302A4E #4E2A36 #484E2A #2A4E42
split-complementary
#302A4E #4E422A #364E2A
monochromatic
#0C0B14 #181526 #302A4E #483F76 #61559E

Accessibility & contrast

On white

13.40
#302A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#302A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A4E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A4E#FFFFFF#000000##FFFFFF
##302A4E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E304F
Deuteranopia (green-blind)
#1F2E4D
Tritanopia (blue-blind)
#293138
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #302a4e;
/* rgb */ color: rgb(48, 42, 78);
/* oklch */ color: oklch(31.0% 0.064 289.8);
Tailwind
colors: {
  custom: {
    50: '#6a6380',
    500: '#302a4e',
    950: '#000000',
  },
}
SCSS
$custom: #302a4e;
$custom-light: #6a6380;
$custom-dark: #000000;
JSON
{
  "hex": "#302a4e",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 250,
    "s": 30,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30989,
    "c": 0.06352,
    "h": 289.8
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#302A4E
secondary
#798054
accent
#C662B5
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #302A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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