#301C98#301C98

#301C98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.185 H 278.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#301C98
RGBrgb(48, 28, 152)
HSLhsl(250, 69%, 35%)
HSVhsv(250, 82%, 60%)
CMYKcmyk(68.4%, 81.6%, 0%, 40.4%)
CIE-LABlab(22.74, 45.54, -63.40)
CIE-LCHlch(22.74, 78.06, 305.69°)
OKLaboklab(35.44% 0.0275 -0.1831)
OKLCHoklch(35.44% 0.185 278.5)
XYZxyz(7.2999, 3.7253, 30.0340)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C98 #84981C
analogous
#1C4698 #301C98 #6E1C98
triadic
#301C98 #98301C #1C9830
tetradic
#301C98 #981C46 #84981C #1C986E
square
#301C98 #981C46 #84981C #1C986E
split-complementary
#301C98 #986E1C #46981C
monochromatic
#0F0931 #201264 #301C98 #4026CC #6750DF

Accessibility & contrast

On white

12.03
#301C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C98
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C98#FFFFFF#000000##FFFFFF
##301C981.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301c98;
/* rgb */ color: rgb(48, 28, 152);
/* oklch */ color: oklch(35.4% 0.185 278.5);
Tailwind
colors: {
  custom: {
    50: '#785db8',
    500: '#301c98',
    950: '#000000',
  },
}
SCSS
$custom: #301c98;
$custom-light: #785db8;
$custom-dark: #000000;
JSON
{
  "hex": "#301c98",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 249.677,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35436,
    "c": 0.18517,
    "h": 278.5
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#301C98
secondary
#AFC14E
accent
#EC3CCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C98

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

Preview Lab → · Contrast checker → · Palette generator →

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