#301E8C#301E8C

#301E8C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.169 H 280.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#301E8C
RGBrgb(48, 30, 140)
HSLhsl(250, 65%, 33%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(65.7%, 78.6%, 0%, 45.1%)
CIE-LABlab(21.76, 40.81, -57.58)
CIE-LCHlch(21.76, 70.57, 305.33°)
OKLaboklab(34.36% 0.0299 -0.1662)
OKLCHoklch(34.36% 0.169 280.2)
XYZxyz(6.4153, 3.4499, 25.1337)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E8C #7A8C1E
analogous
#1E438C #301E8C #671E8C
triadic
#301E8C #8C301E #1E8C30
tetradic
#301E8C #8C1E43 #7A8C1E #1E8C67
square
#301E8C #8C1E43 #7A8C1E #1E8C67
split-complementary
#301E8C #8C671E #438C1E
monochromatic
#0D0827 #1F135A #301E8C #4129BE #634CD9

Accessibility & contrast

On white

12.43
#301E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E8C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E8C#FFFFFF#000000##FFFFFF
##301E8C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301e8c;
/* rgb */ color: rgb(48, 30, 140);
/* oklch */ color: oklch(34.4% 0.169 280.2);
Tailwind
colors: {
  custom: {
    50: '#765daf',
    500: '#301e8c',
    950: '#000000',
  },
}
SCSS
$custom: #301e8c;
$custom-light: #765daf;
$custom-dark: #000000;
JSON
{
  "hex": "#301e8c",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 249.818,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3436,
    "c": 0.16886,
    "h": 280.2
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#301E8C
secondary
#A9BB4B
accent
#E840CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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