#303BAE#303BAE

#303BAE is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.181 H 271.7°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#303BAE
RGBrgb(48, 59, 174)
HSLhsl(235, 57%, 44%)
HSVhsv(235, 72%, 68%)
CMYKcmyk(72.4%, 66.1%, 0%, 31.8%)
CIE-LABlab(31.37, 35.11, -62.51)
CIE-LCHlch(31.37, 71.70, 299.32°)
OKLaboklab(42.26% 0.0055 -0.1807)
OKLCHoklch(42.26% 0.181 271.7)
XYZxyz(10.4203, 6.8112, 40.8017)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BAE #AEA330
analogous
#307AAE #303BAE #6430AE
triadic
#303BAE #AE303B #3BAE30
tetradic
#303BAE #AE307A #AEA330 #30AE64
square
#303BAE #AE307A #AEA330 #30AE64
split-complementary
#303BAE #AE6430 #7AAE30
monochromatic
#161A4E #232B7E #303BAE #4D58CE #7D85DB

Accessibility & contrast

On white

8.89
#303BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#303BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BAE
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BAE#FFFFFF#000000##FFFFFF
##303BAE1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303bae;
/* rgb */ color: rgb(48, 59, 174);
/* oklch */ color: oklch(42.3% 0.181 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b71c7',
    500: '#303bae',
    950: '#000000',
  },
}
SCSS
$custom: #303bae;
$custom-light: #7b71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#303bae",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 174
  },
  "hsl": {
    "h": 234.762,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42259,
    "c": 0.18076,
    "h": 271.7
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#303BAE
secondary
#C4BD76
accent
#D348E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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