#301E98#301E98

#301E98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.183 H 278.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#301E98
RGBrgb(48, 30, 152)
HSLhsl(249, 67%, 36%)
HSVhsv(249, 80%, 60%)
CMYKcmyk(68.4%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.08, 44.57, -62.84)
CIE-LCHlch(23.08, 77.04, 305.35°)
OKLaboklab(35.67% 0.0265 -0.1815)
OKLCHoklch(35.67% 0.183 278.3)
XYZxyz(7.3489, 3.8233, 30.0504)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E98 #86981E
analogous
#1E4998 #301E98 #6D1E98
triadic
#301E98 #98301E #1E9830
tetradic
#301E98 #981E49 #86981E #1E986D
square
#301E98 #981E49 #86981E #1E986D
split-complementary
#301E98 #986D1E #49981E
monochromatic
#100A32 #201465 #301E98 #4028CB #6853DD

Accessibility & contrast

On white

11.90
#301E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E98
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E98#FFFFFF#000000##FFFFFF
##301E981.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301e98;
/* rgb */ color: rgb(48, 30, 152);
/* oklch */ color: oklch(35.7% 0.183 278.3);
Tailwind
colors: {
  custom: {
    50: '#785eb8',
    500: '#301e98',
    950: '#000000',
  },
}
SCSS
$custom: #301e98;
$custom-light: #785eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#301e98",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 248.852,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3567,
    "c": 0.18345,
    "h": 278.3
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#301E98
secondary
#B0C051
accent
#EA3ED1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301E98

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

Preview Lab → · Contrast checker → · Palette generator →

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