#301E8D#301E8D

#301E8D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.170 H 280.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#301E8D
RGBrgb(48, 30, 141)
HSLhsl(250, 65%, 34%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(66%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.87, 41.12, -58.02)
CIE-LCHlch(21.87, 71.12, 305.33°)
OKLaboklab(34.47% 0.0296 -0.1675)
OKLCHoklch(34.47% 0.17 280)
XYZxyz(6.4894, 3.4795, 25.5238)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E8D #7B8D1E
analogous
#1E438D #301E8D #671E8D
triadic
#301E8D #8D301E #1E8D30
tetradic
#301E8D #8D1E43 #7B8D1E #1E8D67
square
#301E8D #8D1E43 #7B8D1E #1E8D67
split-complementary
#301E8D #8D671E #438D1E
monochromatic
#0E0928 #1F135B #301E8D #4129BF #634CD9

Accessibility & contrast

On white

12.38
#301E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E8D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E8D#FFFFFF#000000##FFFFFF
##301E8D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301e8d;
/* rgb */ color: rgb(48, 30, 141);
/* oklch */ color: oklch(34.5% 0.170 280.0);
Tailwind
colors: {
  custom: {
    50: '#765daf',
    500: '#301e8d',
    950: '#000000',
  },
}
SCSS
$custom: #301e8d;
$custom-light: #765daf;
$custom-dark: #000000;
JSON
{
  "hex": "#301e8d",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 249.73,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34468,
    "c": 0.1701,
    "h": 280
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#301E8D
secondary
#A9BC4B
accent
#E840CD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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