#303D98#303D98

#303D98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.148 H 271.9°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#303D98
RGBrgb(48, 61, 152)
HSLhsl(233, 52%, 39%)
HSVhsv(233, 68%, 60%)
CMYKcmyk(68.4%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.99, 25.83, -51.50)
CIE-LCHlch(29.99, 57.61, 296.63°)
OKLaboklab(40.66% 0.0049 -0.1483)
OKLCHoklch(40.66% 0.148 271.9)
XYZxyz(8.5533, 6.2321, 30.4518)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D98 #988B30
analogous
#307198 #303D98 #573098
triadic
#303D98 #98303D #3D9830
tetradic
#303D98 #983071 #988B30 #309857
square
#303D98 #983071 #988B30 #309857
split-complementary
#303D98 #985730 #719830
monochromatic
#13183B #212A69 #303D98 #4252C3 #707DD2

Accessibility & contrast

On white

9.35
#303D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#303D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D98
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D98#FFFFFF#000000##FFFFFF
##303D981.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303d98;
/* rgb */ color: rgb(48, 61, 152);
/* oklch */ color: oklch(40.7% 0.148 271.9);
Tailwind
colors: {
  custom: {
    50: '#7672b7',
    500: '#303d98',
    950: '#000000',
  },
}
SCSS
$custom: #303d98;
$custom-light: #7672b7;
$custom-dark: #000000;
JSON
{
  "hex": "#303d98",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 232.5,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.14843,
    "h": 271.9
  },
  "luminance": 0.06233
}

Semantic roles & 50–950 ramp

primary
#303D98
secondary
#BAB06A
accent
#CA4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #303D98

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

Preview Lab → · Contrast checker → · Palette generator →

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