#301962#301962

#301962 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.121 H 291.6°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#301962
RGBrgb(48, 25, 98)
HSLhsl(259, 59%, 24%)
HSVhsv(259, 74%, 38%)
CMYKcmyk(51%, 74.5%, 0%, 61.6%)
CIE-LABlab(16.53, 30.31, -39.21)
CIE-LCHlch(16.53, 49.56, 307.70°)
OKLaboklab(29.38% 0.0446 -0.1124)
OKLCHoklch(29.38% 0.121 291.6)
XYZxyz(3.7705, 2.2053, 11.7799)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301962 #4B6219
analogous
#192762 #301962 #551962
triadic
#301962 #623019 #196230
tetradic
#301962 #621927 #4B6219 #196255
square
#301962 #621927 #4B6219 #196255
split-complementary
#301962 #625519 #276219
monochromatic
#0C0618 #180D31 #301962 #482593 #6032C4

Accessibility & contrast

On white

14.57
#301962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#301962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301962
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301962#FFFFFF#000000##FFFFFF
##3019621.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#202C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301962;
/* rgb */ color: rgb(48, 25, 98);
/* oklch */ color: oklch(29.4% 0.121 291.6);
Tailwind
colors: {
  custom: {
    50: '#6e588f',
    500: '#301962',
    950: '#000000',
  },
}
SCSS
$custom: #301962;
$custom-light: #6e588f;
$custom-dark: #000000;
JSON
{
  "hex": "#301962",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 258.904,
    "s": 59.35,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29377,
    "c": 0.12093,
    "h": 291.6
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#301962
secondary
#7C983F
accent
#E345B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301962

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

Preview Lab → · Contrast checker → · Palette generator →

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