#30255E#30255E

#30255E is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.1% C 0.098 H 288.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#30255E
RGBrgb(48, 37, 94)
HSLhsl(252, 44%, 26%)
HSVhsv(252, 61%, 37%)
CMYKcmyk(48.9%, 60.6%, 0%, 63.1%)
CIE-LABlab(19.05, 21.37, -32.47)
CIE-LCHlch(19.05, 38.87, 303.35°)
OKLaboklab(31.1% 0.0306 -0.0926)
OKLCHoklch(31.1% 0.098 288.3)
XYZxyz(3.9003, 2.7595, 10.9146)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30255E #535E25
analogous
#25365E #30255E #4C255E
triadic
#30255E #5E3025 #255E30
tetradic
#30255E #5E2536 #535E25 #255E4C
square
#30255E #5E2536 #535E25 #255E4C
split-complementary
#30255E #5E4C25 #365E25
monochromatic
#0B0916 #1A1432 #30255E #46368A #5D48B6

Accessibility & contrast

On white

13.53
#30255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#30255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30255E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30255E#FFFFFF#000000##FFFFFF
##30255E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033060
Deuteranopia (green-blind)
#042D5D
Tritanopia (blue-blind)
#22323D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30255e;
/* rgb */ color: rgb(48, 37, 94);
/* oklch */ color: oklch(31.1% 0.098 288.3);
Tailwind
colors: {
  custom: {
    50: '#6c608c',
    500: '#30255e',
    950: '#000000',
  },
}
SCSS
$custom: #30255e;
$custom-light: #6c608c;
$custom-dark: #000000;
JSON
{
  "hex": "#30255e",
  "rgb": {
    "r": 48,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 251.579,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31104,
    "c": 0.0975,
    "h": 288.3
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#30255E
secondary
#84914D
accent
#D355BB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #30255E

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

Preview Lab → · Contrast checker → · Palette generator →

#30255E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva