#303C98#303C98

#303C98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.150 H 272.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#303C98
RGBrgb(48, 60, 152)
HSLhsl(233, 52%, 39%)
HSVhsv(233, 68%, 60%)
CMYKcmyk(68.4%, 60.5%, 0%, 40.4%)
CIE-LABlab(29.73, 26.49, -51.92)
CIE-LCHlch(29.73, 58.29, 297.03°)
OKLaboklab(40.46% 0.0057 -0.1496)
OKLCHoklch(40.46% 0.15 272.2)
XYZxyz(8.5004, 6.1263, 30.4342)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C98 #988C30
analogous
#307098 #303C98 #583098
triadic
#303C98 #98303C #3C9830
tetradic
#303C98 #983070 #988C30 #309858
square
#303C98 #983070 #988C30 #309858
split-complementary
#303C98 #985830 #709830
monochromatic
#13173B #212A69 #303C98 #4251C3 #707CD2

Accessibility & contrast

On white

9.44
#303C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#303C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C98
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C98#FFFFFF#000000##FFFFFF
##303C981.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #303c98;
/* rgb */ color: rgb(48, 60, 152);
/* oklch */ color: oklch(40.5% 0.150 272.2);
Tailwind
colors: {
  custom: {
    50: '#7671b7',
    500: '#303c98',
    950: '#000000',
  },
}
SCSS
$custom: #303c98;
$custom-light: #7671b7;
$custom-dark: #000000;
JSON
{
  "hex": "#303c98",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 233.077,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40463,
    "c": 0.14973,
    "h": 272.2
  },
  "luminance": 0.06127
}

Semantic roles & 50–950 ramp

primary
#303C98
secondary
#BAB06A
accent
#CB4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303C98

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

Preview Lab → · Contrast checker → · Palette generator →

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