#303B97#303B97

#303B97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.150 H 272.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#303B97
RGBrgb(48, 59, 151)
HSLhsl(234, 52%, 39%)
HSVhsv(234, 68%, 59%)
CMYKcmyk(68.2%, 60.9%, 0%, 40.8%)
CIE-LABlab(29.39, 26.79, -51.87)
CIE-LCHlch(29.39, 58.38, 297.31°)
OKLaboklab(40.18% 0.0066 -0.1495)
OKLCHoklch(40.18% 0.15 272.5)
XYZxyz(8.3669, 5.9899, 29.9874)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303B97 #978C30
analogous
#306F97 #303B97 #593097
triadic
#303B97 #97303B #3B9730
tetradic
#303B97 #97306F #978C30 #309759
square
#303B97 #97306F #978C30 #309759
split-complementary
#303B97 #975930 #6F9730
monochromatic
#12173A #212969 #303B97 #414FC3 #707AD2

Accessibility & contrast

On white

9.55
#303B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#303B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303B97
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303B97#FFFFFF#000000##FFFFFF
##303B971.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303b97;
/* rgb */ color: rgb(48, 59, 151);
/* oklch */ color: oklch(40.2% 0.150 272.5);
Tailwind
colors: {
  custom: {
    50: '#7570b6',
    500: '#303b97',
    950: '#000000',
  },
}
SCSS
$custom: #303b97;
$custom-light: #7570b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303b97",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 233.592,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40184,
    "c": 0.14962,
    "h": 272.5
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#303B97
secondary
#B9B16A
accent
#CC4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303B97

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

Preview Lab → · Contrast checker → · Palette generator →

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