#303AB3#303AB3

#303AB3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.188 H 271.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#303AB3
RGBrgb(48, 58, 179)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 70%)
CMYKcmyk(73.2%, 67.6%, 0%, 29.8%)
CIE-LABlab(31.60, 37.51, -65.13)
CIE-LCHlch(31.60, 75.16, 299.94°)
OKLaboklab(42.56% 0.0057 -0.1883)
OKLCHoklch(42.56% 0.188 271.7)
XYZxyz(10.8659, 6.9080, 43.3998)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AB3 #B3A930
analogous
#307CB3 #303AB3 #6830B3
triadic
#303AB3 #B3303A #3AB330
tetradic
#303AB3 #B3307C #B3A930 #30B368
square
#303AB3 #B3307C #B3A930 #30B368
split-complementary
#303AB3 #B36830 #7CB330
monochromatic
#161B52 #232A83 #303AB3 #505AD0 #8087DD

Accessibility & contrast

On white

8.82
#303AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#303AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AB3
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AB3#FFFFFF#000000##FFFFFF
##303AB31.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303ab3;
/* rgb */ color: rgb(48, 58, 179);
/* oklch */ color: oklch(42.6% 0.188 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c70cb',
    500: '#303ab3',
    950: '#000000',
  },
}
SCSS
$custom: #303ab3;
$custom-light: #7c70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#303ab3",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 235.42,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42562,
    "c": 0.18841,
    "h": 271.7
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#303AB3
secondary
#C6C079
accent
#D547E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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