#301B63#301B63

#301B63 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.120 H 290.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#301B63
RGBrgb(48, 27, 99)
HSLhsl(258, 57%, 25%)
HSVhsv(258, 73%, 39%)
CMYKcmyk(51.5%, 72.7%, 0%, 61.2%)
CIE-LABlab(17.05, 29.44, -39.03)
CIE-LCHlch(17.05, 48.88, 307.03°)
OKLaboklab(29.78% 0.0422 -0.1119)
OKLCHoklch(29.78% 0.12 290.7)
XYZxyz(3.8623, 2.3129, 12.0449)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B63 #4E631B
analogous
#1B2A63 #301B63 #541B63
triadic
#301B63 #63301B #1B6330
tetradic
#301B63 #631B2A #4E631B #1B6354
square
#301B63 #631B2A #4E631B #1B6354
split-complementary
#301B63 #63541B #2A631B
monochromatic
#0C0718 #190E33 #301B63 #472893 #5F35C3

Accessibility & contrast

On white

14.36
#301B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#301B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B63
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B63#FFFFFF#000000##FFFFFF
##301B631.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#1F2D3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301b63;
/* rgb */ color: rgb(48, 27, 99);
/* oklch */ color: oklch(29.8% 0.120 290.7);
Tailwind
colors: {
  custom: {
    50: '#6e5990',
    500: '#301b63',
    950: '#000000',
  },
}
SCSS
$custom: #301b63;
$custom-light: #6e5990;
$custom-dark: #000000;
JSON
{
  "hex": "#301b63",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 257.5,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29777,
    "c": 0.11958,
    "h": 290.7
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#301B63
secondary
#7F9841
accent
#E047B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #301B63

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

Preview Lab → · Contrast checker → · Palette generator →

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