#303A8D#303A8D

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

Color values

HEX#303A8D
RGBrgb(48, 58, 141)
HSLhsl(234, 49%, 37%)
HSVhsv(234, 66%, 55%)
CMYKcmyk(66%, 58.9%, 0%, 44.7%)
CIE-LABlab(28.32, 23.79, -47.47)
CIE-LCHlch(28.32, 53.09, 296.62°)
OKLaboklab(39.14% 0.0075 -0.1365)
OKLCHoklch(39.14% 0.137 273.1)
XYZxyz(7.5381, 5.5769, 25.8733)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A8D #8D8330
analogous
#30698D #303A8D #54308D
triadic
#303A8D #8D303A #3A8D30
tetradic
#303A8D #8D3069 #8D8330 #308D54
square
#303A8D #8D3069 #8D8330 #308D54
split-complementary
#303A8D #8D5430 #698D30
monochromatic
#111432 #20275F #303A8D #404DBB #6B75CD

Accessibility & contrast

On white

9.93
#303A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303A8D
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A8D#FFFFFF#000000##FFFFFF
##303A8D1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303a8d;
/* rgb */ color: rgb(48, 58, 141);
/* oklch */ color: oklch(39.1% 0.137 273.1);
Tailwind
colors: {
  custom: {
    50: '#7370af',
    500: '#303a8d',
    950: '#000000',
  },
}
SCSS
$custom: #303a8d;
$custom-light: #7370af;
$custom-dark: #000000;
JSON
{
  "hex": "#303a8d",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 233.548,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39138,
    "c": 0.13673,
    "h": 273.1
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

primary
#303A8D
secondary
#B4AB65
accent
#CA4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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