#301F89#301F89

#301F89 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.164 H 280.5°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#301F89
RGBrgb(48, 31, 137)
HSLhsl(250, 63%, 33%)
HSVhsv(250, 77%, 54%)
CMYKcmyk(65%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.63, 39.32, -55.92)
CIE-LCHlch(21.63, 68.36, 305.11°)
OKLaboklab(34.17% 0.03 -0.1614)
OKLCHoklch(34.17% 0.164 280.5)
XYZxyz(6.2228, 3.4140, 23.9931)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F89 #78891F
analogous
#1F4389 #301F89 #651F89
triadic
#301F89 #89301F #1F8930
tetradic
#301F89 #891F43 #78891F #1F8965
square
#301F89 #891F43 #78891F #1F8965
split-complementary
#301F89 #89651F #43891F
monochromatic
#0D0825 #1F1457 #301F89 #412ABB #624CD6

Accessibility & contrast

On white

12.48
#301F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#301F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F89
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F89#FFFFFF#000000##FFFFFF
##301F891.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301f89;
/* rgb */ color: rgb(48, 31, 137);
/* oklch */ color: oklch(34.2% 0.164 280.5);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#301f89',
    950: '#000000',
  },
}
SCSS
$custom: #301f89;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#301f89",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 249.623,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34172,
    "c": 0.16414,
    "h": 280.5
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#301F89
secondary
#A7B94B
accent
#E642CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301F89

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

Preview Lab → · Contrast checker → · Palette generator →

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