#301E4F#301E4F

#301E4F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.087 H 297.6°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#301E4F
RGBrgb(48, 30, 79)
HSLhsl(262, 45%, 21%)
HSVhsv(262, 62%, 31%)
CMYKcmyk(39.2%, 62%, 0%, 69%)
CIE-LABlab(16.11, 21.24, -27.13)
CIE-LCHlch(16.11, 34.46, 308.05°)
OKLaboklab(28.58% 0.0402 -0.0769)
OKLCHoklch(28.58% 0.087 297.6)
XYZxyz(3.0941, 2.1214, 7.6421)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E4F #3D4F1E
analogous
#1E254F #301E4F #491E4F
triadic
#301E4F #4F301E #1E4F30
tetradic
#301E4F #4F1E25 #3D4F1E #1E4F49
square
#301E4F #4F1E25 #3D4F1E #1E4F49
split-complementary
#301E4F #4F491E #254F1E
monochromatic
#0D0816 #150D23 #301E4F #4B2F7B #6640A8

Accessibility & contrast

On white

14.75
#301E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#301E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E4F
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E4F#FFFFFF#000000##FFFFFF
##301E4F1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072851
Deuteranopia (green-blind)
#0E274E
Tritanopia (blue-blind)
#292833
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301e4f;
/* rgb */ color: rgb(48, 30, 79);
/* oklch */ color: oklch(28.6% 0.087 297.6);
Tailwind
colors: {
  custom: {
    50: '#6b5a81',
    500: '#301e4f',
    950: '#000000',
  },
}
SCSS
$custom: #301e4f;
$custom-light: #6b5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#301e4f",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 262.041,
    "s": 44.954,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28575,
    "c": 0.08679,
    "h": 297.6
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#301E4F
secondary
#6D8445
accent
#D553A5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #301E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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