#302844#302844

#302844 is a dark, muted violet. Relative luminance 0.026; OKLCH L 29.9% C 0.051 H 296.4°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#302844
RGBrgb(48, 40, 68)
HSLhsl(257, 26%, 21%)
HSVhsv(257, 41%, 27%)
CMYKcmyk(29.4%, 41.2%, 0%, 73.3%)
CIE-LABlab(18.20, 10.96, -16.30)
CIE-LCHlch(18.20, 19.64, 303.91°)
OKLaboklab(29.92% 0.0225 -0.0453)
OKLCHoklch(29.92% 0.051 296.4)
XYZxyz(3.0209, 2.5633, 5.8033)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302844 #3C4428
analogous
#282E44 #302844 #3E2844
triadic
#302844 #443028 #284430
tetradic
#302844 #44282E #3C4428 #28443E
square
#302844 #44282E #3C4428 #28443E
split-complementary
#302844 #443E28 #2E4428
monochromatic
#0E0B13 #15111D #302844 #4B3F6B #665591

Accessibility & contrast

On white

13.88
#302844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#302844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302844
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302844#FFFFFF#000000##FFFFFF
##3028441.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212D45
Deuteranopia (green-blind)
#222C43
Tritanopia (blue-blind)
#2C2D32
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #302844;
/* rgb */ color: rgb(48, 40, 68);
/* oklch */ color: oklch(29.9% 0.051 296.4);
Tailwind
colors: {
  custom: {
    50: '#696278',
    500: '#302844',
    950: '#000000',
  },
}
SCSS
$custom: #302844;
$custom-light: #696278;
$custom-dark: #000000;
JSON
{
  "hex": "#302844",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 68
  },
  "hsl": {
    "h": 257.143,
    "s": 25.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29916,
    "c": 0.05059,
    "h": 296.4
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

primary
#302844
secondary
#6C7652
accent
#C265A8
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#060509
muted
#7A797B

Preview Lab

Preview with #302844

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

Preview Lab → · Contrast checker → · Palette generator →

#302844 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva