#303D89#303D89

#303D89 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.127 H 272.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#303D89
RGBrgb(48, 61, 137)
HSLhsl(231, 48%, 36%)
HSVhsv(231, 65%, 54%)
CMYKcmyk(65%, 55.5%, 0%, 46.3%)
CIE-LABlab(28.83, 20.29, -44.17)
CIE-LCHlch(28.83, 48.61, 294.67°)
OKLaboklab(39.42% 0.0044 -0.1268)
OKLCHoklch(39.42% 0.127 272)
XYZxyz(7.4015, 5.7714, 24.3860)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D89 #897C30
analogous
#306A89 #303D89 #503089
triadic
#303D89 #89303D #3D8930
tetradic
#303D89 #89306A #897C30 #308950
square
#303D89 #89306A #897C30 #308950
split-complementary
#303D89 #895030 #6A8930
monochromatic
#10152E #20295C #303D89 #4051B6 #6977CA

Accessibility & contrast

On white

9.75
#303D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#303D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D89
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D89#FFFFFF#000000##FFFFFF
##303D891.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08488C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303d89;
/* rgb */ color: rgb(48, 61, 137);
/* oklch */ color: oklch(39.4% 0.127 272.0);
Tailwind
colors: {
  custom: {
    50: '#7272ac',
    500: '#303d89',
    950: '#000000',
  },
}
SCSS
$custom: #303d89;
$custom-light: #7272ac;
$custom-dark: #000000;
JSON
{
  "hex": "#303d89",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 137
  },
  "hsl": {
    "h": 231.236,
    "s": 48.108,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39422,
    "c": 0.12687,
    "h": 272
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

primary
#303D89
secondary
#B2A663
accent
#C450D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303D89

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

Preview Lab → · Contrast checker → · Palette generator →

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