#301E57#301E57

#301E57 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.098 H 294.0°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#301E57
RGBrgb(48, 30, 87)
HSLhsl(259, 49%, 23%)
HSVhsv(259, 66%, 34%)
CMYKcmyk(44.8%, 65.5%, 0%, 65.9%)
CIE-LABlab(16.72, 23.74, -31.56)
CIE-LCHlch(16.72, 39.49, 306.96°)
OKLaboklab(29.22% 0.04 -0.0899)
OKLCHoklch(29.22% 0.098 294)
XYZxyz(3.4030, 2.2450, 9.2690)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E57 #45571E
analogous
#1E2957 #301E57 #4C1E57
triadic
#301E57 #57301E #1E5730
tetradic
#301E57 #571E29 #45571E #1E574C
square
#301E57 #571E29 #45571E #1E574C
split-complementary
#301E57 #574C1E #29571E
monochromatic
#0D0817 #170E29 #301E57 #492E85 #623DB2

Accessibility & contrast

On white

14.49
#301E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#301E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E57
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E57#FFFFFF#000000##FFFFFF
##301E571.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#012856
Tritanopia (blue-blind)
#262B37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301e57;
/* rgb */ color: rgb(48, 30, 87);
/* oklch */ color: oklch(29.2% 0.098 294.0);
Tailwind
colors: {
  custom: {
    50: '#6c5a87',
    500: '#301e57',
    950: '#000000',
  },
}
SCSS
$custom: #301e57;
$custom-light: #6c5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#301e57",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 258.947,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29219,
    "c": 0.09844,
    "h": 294
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#301E57
secondary
#768C45
accent
#D850AD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #301E57

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

Preview Lab → · Contrast checker → · Palette generator →

#301E57 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva