#301B6E#301B6E

#301B6E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.134 H 287.3°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#301B6E
RGBrgb(48, 27, 110)
HSLhsl(255, 61%, 27%)
HSVhsv(255, 75%, 43%)
CMYKcmyk(56.4%, 75.5%, 0%, 56.9%)
CIE-LABlab(18.09, 32.93, -44.53)
CIE-LCHlch(18.09, 55.39, 306.48°)
OKLaboklab(30.84% 0.0399 -0.128)
OKLCHoklch(30.84% 0.134 287.3)
XYZxyz(4.4245, 2.5378, 15.0055)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B6E #596E1B
analogous
#1B306E #301B6E #5A1B6E
triadic
#301B6E #6E301B #1B6E30
tetradic
#301B6E #6E1B30 #596E1B #1B6E5A
square
#301B6E #6E1B30 #596E1B #1B6E5A
split-complementary
#301B6E #6E5A1B #306E1B
monochromatic
#0B0619 #1B0F3D #301B6E #45279F #5C36CE

Accessibility & contrast

On white

13.93
#301B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B6E
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B6E#FFFFFF#000000##FFFFFF
##301B6E1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#173142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301b6e;
/* rgb */ color: rgb(48, 27, 110);
/* oklch */ color: oklch(30.8% 0.134 287.3);
Tailwind
colors: {
  custom: {
    50: '#705998',
    500: '#301b6e',
    950: '#000000',
  },
}
SCSS
$custom: #301b6e;
$custom-light: #705998;
$custom-dark: #000000;
JSON
{
  "hex": "#301b6e",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 255.181,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30838,
    "c": 0.13411,
    "h": 287.3
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#301B6E
secondary
#8AA342
accent
#E444BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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