#303C97#303C97

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

Color values

HEX#303C97
RGBrgb(48, 60, 151)
HSLhsl(233, 52%, 39%)
HSVhsv(233, 68%, 59%)
CMYKcmyk(68.2%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.65, 26.12, -51.45)
CIE-LCHlch(29.65, 57.70, 296.92°)
OKLaboklab(40.38% 0.0057 -0.1482)
OKLCHoklch(40.38% 0.148 272.2)
XYZxyz(8.4188, 6.0937, 30.0047)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C97 #978B30
analogous
#307097 #303C97 #583097
triadic
#303C97 #97303C #3C9730
tetradic
#303C97 #973070 #978B30 #309758
square
#303C97 #973070 #978B30 #309758
split-complementary
#303C97 #975830 #709730
monochromatic
#12173A #212A69 #303C97 #4151C3 #707BD2

Accessibility & contrast

On white

9.46
#303C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#303C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C97
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C97#FFFFFF#000000##FFFFFF
##303C971.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303c97;
/* rgb */ color: rgb(48, 60, 151);
/* oklch */ color: oklch(40.4% 0.148 272.2);
Tailwind
colors: {
  custom: {
    50: '#7571b6',
    500: '#303c97',
    950: '#000000',
  },
}
SCSS
$custom: #303c97;
$custom-light: #7571b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303c97",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 233.01,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40377,
    "c": 0.14832,
    "h": 272.2
  },
  "luminance": 0.06094
}

Semantic roles & 50–950 ramp

primary
#303C97
secondary
#B9B06A
accent
#CB4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303C97

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

Preview Lab → · Contrast checker → · Palette generator →

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