#301F8D#301F8D

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

Color values

HEX#301F8D
RGBrgb(48, 31, 141)
HSLhsl(249, 64%, 34%)
HSVhsv(249, 78%, 55%)
CMYKcmyk(66%, 78%, 0%, 44.7%)
CIE-LABlab(22.06, 40.59, -57.72)
CIE-LCHlch(22.06, 70.56, 305.12°)
OKLaboklab(34.6% 0.029 -0.1666)
OKLCHoklch(34.6% 0.169 279.9)
XYZxyz(6.5151, 3.5309, 25.5323)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F8D #7C8D1F
analogous
#1F458D #301F8D #671F8D
triadic
#301F8D #8D301F #1F8D30
tetradic
#301F8D #8D1F45 #7C8D1F #1F8D67
square
#301F8D #8D1F45 #7C8D1F #1F8D67
split-complementary
#301F8D #8D671F #458D1F
monochromatic
#0E0929 #1F145B #301F8D #412ABF #644ED8

Accessibility & contrast

On white

12.31
#301F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#301F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F8D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F8D#FFFFFF#000000##FFFFFF
##301F8D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301f8d;
/* rgb */ color: rgb(48, 31, 141);
/* oklch */ color: oklch(34.6% 0.169 279.9);
Tailwind
colors: {
  custom: {
    50: '#765daf',
    500: '#301f8d',
    950: '#000000',
  },
}
SCSS
$custom: #301f8d;
$custom-light: #765daf;
$custom-dark: #000000;
JSON
{
  "hex": "#301f8d",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 249.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34598,
    "c": 0.16911,
    "h": 279.9
  },
  "luminance": 0.03531
}

Semantic roles & 50–950 ramp

primary
#301F8D
secondary
#AABB4D
accent
#E741CD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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