#301F98#301F98

#301F98 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.183 H 278.2°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#301F98
RGBrgb(48, 31, 152)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 80%, 60%)
CMYKcmyk(68.4%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.25, 44.06, -62.55)
CIE-LCHlch(23.25, 76.51, 305.16°)
OKLaboklab(35.79% 0.026 -0.1807)
OKLCHoklch(35.79% 0.183 278.2)
XYZxyz(7.3746, 3.8747, 30.0589)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F98 #87981F
analogous
#1F4A98 #301F98 #6C1F98
triadic
#301F98 #98301F #1F9830
tetradic
#301F98 #981F4A #87981F #1F986C
square
#301F98 #981F4A #87981F #1F986C
split-complementary
#301F98 #986C1F #4A981F
monochromatic
#100A32 #201565 #301F98 #4029CB #6855DC

Accessibility & contrast

On white

11.83
#301F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#301F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F98
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F98#FFFFFF#000000##FFFFFF
##301F981.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301f98;
/* rgb */ color: rgb(48, 31, 152);
/* oklch */ color: oklch(35.8% 0.183 278.2);
Tailwind
colors: {
  custom: {
    50: '#785eb8',
    500: '#301f98',
    950: '#000000',
  },
}
SCSS
$custom: #301f98;
$custom-light: #785eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#301f98",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 248.43,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35791,
    "c": 0.18255,
    "h": 278.2
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#301F98
secondary
#B1C053
accent
#E93FD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #301F98

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

Preview Lab → · Contrast checker → · Palette generator →

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