#303EA8#303EA8

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

Color values

HEX#303EA8
RGBrgb(48, 62, 168)
HSLhsl(233, 56%, 42%)
HSVhsv(233, 71%, 66%)
CMYKcmyk(71.4%, 63.1%, 0%, 34.1%)
CIE-LABlab(31.58, 31.02, -58.59)
CIE-LCHlch(31.58, 66.29, 297.90°)
OKLaboklab(42.25% 0.0038 -0.1691)
OKLCHoklch(42.25% 0.169 271.3)
XYZxyz(10.0070, 6.8998, 37.8426)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EA8 #A89A30
analogous
#307AA8 #303EA8 #5E30A8
triadic
#303EA8 #A8303E #3EA830
tetradic
#303EA8 #A8307A #A89A30 #30A85E
square
#303EA8 #A8307A #A89A30 #30A85E
split-complementary
#303EA8 #A85E30 #7AA830
monochromatic
#151B49 #222C78 #303EA8 #4A59CB #7A85D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##303EA8#FFFFFF#000000##FFFFFF
##303EA81.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)
#0050AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303ea8;
/* rgb */ color: rgb(48, 62, 168);
/* oklch */ color: oklch(42.2% 0.169 271.3);
Tailwind
colors: {
  custom: {
    50: '#7973c3',
    500: '#303ea8',
    950: '#000000',
  },
}
SCSS
$custom: #303ea8;
$custom-light: #7973c3;
$custom-dark: #000000;
JSON
{
  "hex": "#303ea8",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 233,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42246,
    "c": 0.16919,
    "h": 271.3
  },
  "luminance": 0.06901
}

Semantic roles & 50–950 ramp

primary
#303EA8
secondary
#C1B873
accent
#CD49DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #303EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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