#30185F#30185F

#30185F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.118 H 293.0°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#30185F
RGBrgb(48, 24, 95)
HSLhsl(260, 60%, 23%)
HSVhsv(260, 75%, 37%)
CMYKcmyk(49.5%, 74.7%, 0%, 62.7%)
CIE-LABlab(16.04, 29.96, -38.02)
CIE-LCHlch(16.04, 48.40, 308.24°)
OKLaboklab(28.94% 0.0463 -0.1089)
OKLCHoklch(28.94% 0.118 293)
XYZxyz(3.6105, 2.1078, 11.0409)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30185F #475F18
analogous
#18235F #30185F #53185F
triadic
#30185F #5F3018 #185F30
tetradic
#30185F #5F1823 #475F18 #185F53
square
#30185F #5F1823 #475F18 #185F53
split-complementary
#30185F #5F5318 #235F18
monochromatic
#0C0618 #170C2E #30185F #492490 #6131C1

Accessibility & contrast

On white

14.77
#30185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#30185F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30185F
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30185F#FFFFFF#000000##FFFFFF
##30185F1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#222A39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #30185f;
/* rgb */ color: rgb(48, 24, 95);
/* oklch */ color: oklch(28.9% 0.118 293.0);
Tailwind
colors: {
  custom: {
    50: '#6e578d',
    500: '#30185f',
    950: '#000000',
  },
}
SCSS
$custom: #30185f;
$custom-light: #6e578d;
$custom-dark: #000000;
JSON
{
  "hex": "#30185f",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 260.282,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28943,
    "c": 0.11831,
    "h": 293
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#30185F
secondary
#78953D
accent
#E345AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30185F

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

Preview Lab → · Contrast checker → · Palette generator →

#30185F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva