#301D98#301D98

#301D98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.184 H 278.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#301D98
RGBrgb(48, 29, 152)
HSLhsl(249, 68%, 35%)
HSVhsv(249, 81%, 60%)
CMYKcmyk(68.4%, 80.9%, 0%, 40.4%)
CIE-LABlab(22.91, 45.06, -63.12)
CIE-LCHlch(22.91, 77.55, 305.52°)
OKLaboklab(35.55% 0.027 -0.1823)
OKLCHoklch(35.55% 0.184 278.4)
XYZxyz(7.3240, 3.7735, 30.0421)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D98 #85981D
analogous
#1D4898 #301D98 #6D1D98
triadic
#301D98 #98301D #1D9830
tetradic
#301D98 #981D48 #85981D #1D986D
square
#301D98 #981D48 #85981D #1D986D
split-complementary
#301D98 #986D1D #48981D
monochromatic
#100931 #201365 #301D98 #4027CB #6752DE

Accessibility & contrast

On white

11.97
#301D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#301D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D98
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D98#FFFFFF#000000##FFFFFF
##301D981.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301d98;
/* rgb */ color: rgb(48, 29, 152);
/* oklch */ color: oklch(35.6% 0.184 278.4);
Tailwind
colors: {
  custom: {
    50: '#785db8',
    500: '#301d98',
    950: '#000000',
  },
}
SCSS
$custom: #301d98;
$custom-light: #785db8;
$custom-dark: #000000;
JSON
{
  "hex": "#301d98",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 249.268,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35551,
    "c": 0.18431,
    "h": 278.4
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#301D98
secondary
#AFC150
accent
#EB3DD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301D98

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

Preview Lab → · Contrast checker → · Palette generator →

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