#30245D#30245D

#30245D is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.8% C 0.098 H 289.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#30245D
RGBrgb(48, 36, 93)
HSLhsl(253, 44%, 25%)
HSVhsv(253, 61%, 36%)
CMYKcmyk(48.4%, 61.3%, 0%, 63.5%)
CIE-LABlab(18.72, 21.71, -32.35)
CIE-LCHlch(18.72, 38.96, 303.86°)
OKLaboklab(30.83% 0.0319 -0.0922)
OKLCHoklch(30.83% 0.098 289.1)
XYZxyz(3.8250, 2.6803, 10.6696)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30245D #515D24
analogous
#24345D #30245D #4D245D
triadic
#30245D #5D3024 #245D30
tetradic
#30245D #5D2434 #515D24 #245D4D
square
#30245D #5D2434 #515D24 #245D4D
split-complementary
#30245D #5D4D24 #345D24
monochromatic
#0B0916 #191331 #30245D #473589 #5E46B5

Accessibility & contrast

On white

13.67
#30245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#30245D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30245D
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30245D#FFFFFF#000000##FFFFFF
##30245D1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F5F
Deuteranopia (green-blind)
#042C5C
Tritanopia (blue-blind)
#22313C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30245d;
/* rgb */ color: rgb(48, 36, 93);
/* oklch */ color: oklch(30.8% 0.098 289.1);
Tailwind
colors: {
  custom: {
    50: '#6c5f8b',
    500: '#30245d',
    950: '#000000',
  },
}
SCSS
$custom: #30245d;
$custom-light: #6c5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#30245d",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 252.632,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30829,
    "c": 0.0976,
    "h": 289.1
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#30245D
secondary
#82914C
accent
#D454B9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #30245D

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

Preview Lab → · Contrast checker → · Palette generator →

#30245D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva