#30195F#30195F

#30195F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.117 H 292.7°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#30195F
RGBrgb(48, 25, 95)
HSLhsl(260, 58%, 24%)
HSVhsv(260, 74%, 37%)
CMYKcmyk(49.5%, 73.7%, 0%, 62.7%)
CIE-LABlab(16.25, 29.38, -37.67)
CIE-LCHlch(16.25, 47.77, 307.95°)
OKLaboklab(29.09% 0.0452 -0.1079)
OKLCHoklch(29.09% 0.117 292.7)
XYZxyz(3.6315, 2.1497, 11.0479)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30195F #485F19
analogous
#19255F #30195F #53195F
triadic
#30195F #5F3019 #195F30
tetradic
#30195F #5F1925 #485F19 #195F53
square
#30195F #5F1925 #485F19 #195F53
split-complementary
#30195F #5F5319 #255F19
monochromatic
#0C0618 #180C2F #30195F #48268F #6132C0

Accessibility & contrast

On white

14.69
#30195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#30195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30195F
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30195F#FFFFFF#000000##FFFFFF
##30195F1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30195f;
/* rgb */ color: rgb(48, 25, 95);
/* oklch */ color: oklch(29.1% 0.117 292.7);
Tailwind
colors: {
  custom: {
    50: '#6d588d',
    500: '#30195f',
    950: '#000000',
  },
}
SCSS
$custom: #30195f;
$custom-light: #6d588d;
$custom-dark: #000000;
JSON
{
  "hex": "#30195f",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 259.714,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29094,
    "c": 0.11696,
    "h": 292.7
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#30195F
secondary
#79953F
accent
#E246AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30195F

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

Preview Lab → · Contrast checker → · Palette generator →

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