#303A8F#303A8F

#303A8F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.140 H 273.1°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#303A8F
RGBrgb(48, 58, 143)
HSLhsl(234, 50%, 37%)
HSVhsv(234, 66%, 56%)
CMYKcmyk(66.4%, 59.4%, 0%, 43.9%)
CIE-LABlab(28.48, 24.53, -48.44)
CIE-LCHlch(28.48, 54.30, 296.85°)
OKLaboklab(39.31% 0.0075 -0.1394)
OKLCHoklch(39.31% 0.14 273.1)
XYZxyz(7.6883, 5.6370, 26.6642)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A8F #8F8530
analogous
#306A8F #303A8F #55308F
triadic
#303A8F #8F303A #3A8F30
tetradic
#303A8F #8F306A #8F8530 #308F55
square
#303A8F #8F306A #8F8530 #308F55
split-complementary
#303A8F #8F5530 #6A8F30
monochromatic
#111533 #212761 #303A8F #3F4DBD #6C76CE

Accessibility & contrast

On white

9.87
#303A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#303A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303A8F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A8F#FFFFFF#000000##FFFFFF
##303A8F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303a8f;
/* rgb */ color: rgb(48, 58, 143);
/* oklch */ color: oklch(39.3% 0.140 273.1);
Tailwind
colors: {
  custom: {
    50: '#7470b0',
    500: '#303a8f',
    950: '#000000',
  },
}
SCSS
$custom: #303a8f;
$custom-light: #7470b0;
$custom-dark: #000000;
JSON
{
  "hex": "#303a8f",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 233.684,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39306,
    "c": 0.1396,
    "h": 273.1
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#303A8F
secondary
#B5AD66
accent
#CB4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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