#301E97#301E97

#301E97 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.182 H 278.5°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#301E97
RGBrgb(48, 30, 151)
HSLhsl(249, 67%, 35%)
HSVhsv(249, 80%, 59%)
CMYKcmyk(68.2%, 80.1%, 0%, 40.8%)
CIE-LABlab(22.97, 44.26, -62.41)
CIE-LCHlch(22.97, 76.51, 305.34°)
OKLaboklab(35.56% 0.0268 -0.1803)
OKLCHoklch(35.56% 0.182 278.5)
XYZxyz(7.2673, 3.7907, 29.6209)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E97 #85971E
analogous
#1E4897 #301E97 #6D1E97
triadic
#301E97 #97301E #1E9730
tetradic
#301E97 #971E48 #85971E #1E976D
square
#301E97 #971E48 #85971E #1E976D
split-complementary
#301E97 #976D1E #48971E
monochromatic
#100A31 #201464 #301E97 #4028CA #6753DD

Accessibility & contrast

On white

11.94
#301E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#301E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E97
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E97#FFFFFF#000000##FFFFFF
##301E971.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301e97;
/* rgb */ color: rgb(48, 30, 151);
/* oklch */ color: oklch(35.6% 0.182 278.5);
Tailwind
colors: {
  custom: {
    50: '#785eb7',
    500: '#301e97',
    950: '#000000',
  },
}
SCSS
$custom: #301e97;
$custom-light: #785eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#301e97",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 248.926,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35559,
    "c": 0.18224,
    "h": 278.5
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#301E97
secondary
#AFC051
accent
#EA3ED0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301E97

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

Preview Lab → · Contrast checker → · Palette generator →

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