#303B8A#303B8A

#303B8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.131 H 272.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#303B8A
RGBrgb(48, 59, 138)
HSLhsl(233, 48%, 36%)
HSVhsv(233, 65%, 54%)
CMYKcmyk(65.2%, 57.2%, 0%, 45.9%)
CIE-LABlab(28.36, 22.01, -45.55)
CIE-LCHlch(28.36, 50.59, 295.79°)
OKLaboklab(39.09% 0.0064 -0.1309)
OKLCHoklch(39.09% 0.131 272.8)
XYZxyz(7.3688, 5.5907, 24.7306)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303B8A #8A7F30
analogous
#30688A #303B8A #52308A
triadic
#303B8A #8A303B #3B8A30
tetradic
#303B8A #8A3068 #8A7F30 #308A52
square
#303B8A #8A3068 #8A7F30 #308A52
split-complementary
#303B8A #8A5230 #688A30
monochromatic
#10142F #20285D #303B8A #404EB7 #6975CB

Accessibility & contrast

On white

9.91
#303B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#303B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303B8A
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303B8A#FFFFFF#000000##FFFFFF
##303B8A1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303b8a;
/* rgb */ color: rgb(48, 59, 138);
/* oklch */ color: oklch(39.1% 0.131 272.8);
Tailwind
colors: {
  custom: {
    50: '#7370ad',
    500: '#303b8a',
    950: '#000000',
  },
}
SCSS
$custom: #303b8a;
$custom-light: #7370ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303b8a",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 232.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39092,
    "c": 0.13105,
    "h": 272.8
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#303B8A
secondary
#B2A964
accent
#C750D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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