#301B65#301B65

#301B65 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.0% C 0.122 H 290.0°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#301B65
RGBrgb(48, 27, 101)
HSLhsl(257, 58%, 25%)
HSVhsv(257, 73%, 40%)
CMYKcmyk(52.5%, 73.3%, 0%, 60.4%)
CIE-LABlab(17.23, 30.07, -40.04)
CIE-LCHlch(17.23, 50.08, 306.91°)
OKLaboklab(29.97% 0.0419 -0.1149)
OKLCHoklch(29.97% 0.122 290)
XYZxyz(3.9591, 2.3517, 12.5547)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B65 #50651B
analogous
#1B2B65 #301B65 #551B65
triadic
#301B65 #65301B #1B6530
tetradic
#301B65 #651B2B #50651B #1B6555
square
#301B65 #651B2B #50651B #1B6555
split-complementary
#301B65 #65551B #2B651B
monochromatic
#0B0618 #190E35 #301B65 #472895 #5E35C6

Accessibility & contrast

On white

14.28
#301B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301B65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B65
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B65#FFFFFF#000000##FFFFFF
##301B651.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#1E2E3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301b65;
/* rgb */ color: rgb(48, 27, 101);
/* oklch */ color: oklch(30.0% 0.122 290.0);
Tailwind
colors: {
  custom: {
    50: '#6e5992',
    500: '#301b65',
    950: '#000000',
  },
}
SCSS
$custom: #301b65;
$custom-light: #6e5992;
$custom-dark: #000000;
JSON
{
  "hex": "#301b65",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 257.027,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29965,
    "c": 0.12226,
    "h": 290
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#301B65
secondary
#819A41
accent
#E147B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301B65

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

Preview Lab → · Contrast checker → · Palette generator →

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