#302238#302238

#302238 is a dark, muted violet. Relative luminance 0.021; OKLCH L 27.9% C 0.044 H 312.7°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#302238
RGBrgb(48, 34, 56)
HSLhsl(278, 24%, 18%)
HSVhsv(278, 39%, 22%)
CMYKcmyk(14.3%, 39.3%, 0%, 78%)
CIE-LABlab(15.79, 11.77, -11.71)
CIE-LCHlch(15.79, 16.60, 315.14°)
OKLaboklab(27.87% 0.0297 -0.0321)
OKLCHoklch(27.87% 0.044 312.7)
XYZxyz(2.5046, 2.0580, 4.0059)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302238 #2A3822
analogous
#252238 #302238 #382235
triadic
#302238 #383022 #223830
tetradic
#302238 #382522 #2A3822 #223538
square
#302238 #382522 #2A3822 #223538
split-complementary
#302238 #353822 #223825
monochromatic
#100C13 #100C13 #302238 #51395E #715084

Accessibility & contrast

On white

14.88
#302238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#302238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302238
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302238#FFFFFF#000000##FFFFFF
##3022381.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2739
Deuteranopia (green-blind)
#222837
Tritanopia (blue-blind)
#2F252A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #302238;
/* rgb */ color: rgb(48, 34, 56);
/* oklch */ color: oklch(27.9% 0.044 312.7);
Tailwind
colors: {
  custom: {
    50: '#685d6e',
    500: '#302238',
    950: '#000000',
  },
}
SCSS
$custom: #302238;
$custom-light: #685d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#302238",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 278.182,
    "s": 24.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27871,
    "c": 0.04378,
    "h": 312.7
  },
  "luminance": 0.02058
}

Semantic roles & 50–950 ramp

primary
#302238
secondary
#576A4B
accent
#C16788
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #302238

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

Preview Lab → · Contrast checker → · Palette generator →

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