#301B6F#301B6F

#301B6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.135 H 287.0°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#301B6F
RGBrgb(48, 27, 111)
HSLhsl(255, 61%, 27%)
HSVhsv(255, 76%, 44%)
CMYKcmyk(56.8%, 75.7%, 0%, 56.5%)
CIE-LABlab(18.19, 33.25, -45.02)
CIE-LCHlch(18.19, 55.97, 306.44°)
OKLaboklab(30.94% 0.0397 -0.1295)
OKLCHoklch(30.94% 0.135 287)
XYZxyz(4.4792, 2.5597, 15.2939)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B6F #5A6F1B
analogous
#1B306F #301B6F #5A1B6F
triadic
#301B6F #6F301B #1B6F30
tetradic
#301B6F #6F1B30 #5A6F1B #1B6F5A
square
#301B6F #6F1B30 #5A6F1B #1B6F5A
split-complementary
#301B6F #6F5A1B #306F1B
monochromatic
#0B0619 #1B0F3E #301B6F #4527A0 #5C36CE

Accessibility & contrast

On white

13.89
#301B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B6F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B6F#FFFFFF#000000##FFFFFF
##301B6F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#163243
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301b6f;
/* rgb */ color: rgb(48, 27, 111);
/* oklch */ color: oklch(30.9% 0.135 287.0);
Tailwind
colors: {
  custom: {
    50: '#705999',
    500: '#301b6f',
    950: '#000000',
  },
}
SCSS
$custom: #301b6f;
$custom-light: #705999;
$custom-dark: #000000;
JSON
{
  "hex": "#301b6f",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 255,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30937,
    "c": 0.13542,
    "h": 287
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#301B6F
secondary
#8BA442
accent
#E444BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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