#303E97#303E97

#303E97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.146 H 271.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#303E97
RGBrgb(48, 62, 151)
HSLhsl(232, 52%, 39%)
HSVhsv(232, 68%, 59%)
CMYKcmyk(68.2%, 58.9%, 0%, 40.8%)
CIE-LABlab(30.17, 24.79, -50.59)
CIE-LCHlch(30.17, 56.34, 296.11°)
OKLaboklab(40.77% 0.004 -0.1457)
OKLCHoklch(40.77% 0.146 271.6)
XYZxyz(8.5256, 6.3072, 30.0403)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E97 #978930
analogous
#307297 #303E97 #563097
triadic
#303E97 #97303E #3E9730
tetradic
#303E97 #973072 #978930 #309756
square
#303E97 #973072 #978930 #309756
split-complementary
#303E97 #975630 #729730
monochromatic
#12183A #212B69 #303E97 #4153C3 #707DD2

Accessibility & contrast

On white

9.29
#303E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#303E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E97
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E97#FFFFFF#000000##FFFFFF
##303E971.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303e97;
/* rgb */ color: rgb(48, 62, 151);
/* oklch */ color: oklch(40.8% 0.146 271.6);
Tailwind
colors: {
  custom: {
    50: '#7573b6',
    500: '#303e97',
    950: '#000000',
  },
}
SCSS
$custom: #303e97;
$custom-light: #7573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303e97",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 231.845,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40769,
    "c": 0.14572,
    "h": 271.6
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#303E97
secondary
#B9AE6A
accent
#C84DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #303E97

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

Preview Lab → · Contrast checker → · Palette generator →

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