#303D97#303D97

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

Color values

HEX#303D97
RGBrgb(48, 61, 151)
HSLhsl(232, 52%, 39%)
HSVhsv(232, 68%, 59%)
CMYKcmyk(68.2%, 59.6%, 0%, 40.8%)
CIE-LABlab(29.91, 25.46, -51.02)
CIE-LCHlch(29.91, 57.02, 296.52°)
OKLaboklab(40.57% 0.0049 -0.1469)
OKLCHoklch(40.57% 0.147 271.9)
XYZxyz(8.4717, 6.1994, 30.0223)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D97 #978A30
analogous
#307197 #303D97 #573097
triadic
#303D97 #97303D #3D9730
tetradic
#303D97 #973071 #978A30 #309757
square
#303D97 #973071 #978A30 #309757
split-complementary
#303D97 #975730 #719730
monochromatic
#12173A #212A69 #303D97 #4152C3 #707CD2

Accessibility & contrast

On white

9.38
#303D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#303D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D97
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D97#FFFFFF#000000##FFFFFF
##303D971.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303d97;
/* rgb */ color: rgb(48, 61, 151);
/* oklch */ color: oklch(40.6% 0.147 271.9);
Tailwind
colors: {
  custom: {
    50: '#7572b6',
    500: '#303d97',
    950: '#000000',
  },
}
SCSS
$custom: #303d97;
$custom-light: #7572b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303d97",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 232.427,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.14702,
    "h": 271.9
  },
  "luminance": 0.062
}

Semantic roles & 50–950 ramp

primary
#303D97
secondary
#B9AF6A
accent
#C94DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #303D97

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

Preview Lab → · Contrast checker → · Palette generator →

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