#301E8E#301E8E

#301E8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.171 H 279.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#301E8E
RGBrgb(48, 30, 142)
HSLhsl(250, 65%, 34%)
HSVhsv(250, 79%, 56%)
CMYKcmyk(66.2%, 78.9%, 0%, 44.3%)
CIE-LABlab(21.98, 41.44, -58.47)
CIE-LCHlch(21.98, 71.66, 305.33°)
OKLaboklab(34.58% 0.0293 -0.1688)
OKLCHoklch(34.58% 0.171 279.9)
XYZxyz(6.5641, 3.5094, 25.9174)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E8E #7C8E1E
analogous
#1E448E #301E8E #681E8E
triadic
#301E8E #8E301E #1E8E30
tetradic
#301E8E #8E1E44 #7C8E1E #1E8E68
square
#301E8E #8E1E44 #7C8E1E #1E8E68
split-complementary
#301E8E #8E681E #448E1E
monochromatic
#0E0929 #1F135B #301E8E #4129C1 #644DD9

Accessibility & contrast

On white

12.34
#301E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#301E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E8E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E8E#FFFFFF#000000##FFFFFF
##301E8E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301e8e;
/* rgb */ color: rgb(48, 30, 142);
/* oklch */ color: oklch(34.6% 0.171 279.9);
Tailwind
colors: {
  custom: {
    50: '#765db0',
    500: '#301e8e',
    950: '#000000',
  },
}
SCSS
$custom: #301e8e;
$custom-light: #765db0;
$custom-dark: #000000;
JSON
{
  "hex": "#301e8e",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 249.643,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34576,
    "c": 0.17132,
    "h": 279.9
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#301E8E
secondary
#AABC4C
accent
#E840CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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