#303EA4#303EA4

#303EA4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.164 H 271.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#303EA4
RGBrgb(48, 62, 164)
HSLhsl(233, 55%, 42%)
HSVhsv(233, 71%, 64%)
CMYKcmyk(70.7%, 62.2%, 0%, 35.7%)
CIE-LABlab(31.24, 29.56, -56.74)
CIE-LCHlch(31.24, 63.98, 297.52°)
OKLaboklab(41.89% 0.0039 -0.1637)
OKLCHoklch(41.89% 0.164 271.4)
XYZxyz(9.6401, 6.7530, 35.9102)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EA4 #A49630
analogous
#3078A4 #303EA4 #5C30A4
triadic
#303EA4 #A4303E #3EA430
tetradic
#303EA4 #A43078 #A49630 #30A45C
square
#303EA4 #A43078 #A49630 #30A45C
split-complementary
#303EA4 #A45C30 #78A430
monochromatic
#141A45 #222C75 #303EA4 #4857C9 #7783D7

Accessibility & contrast

On white

8.93
#303EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#303EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EA4
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EA4#FFFFFF#000000##FFFFFF
##303EA41.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303ea4;
/* rgb */ color: rgb(48, 62, 164);
/* oklch */ color: oklch(41.9% 0.164 271.4);
Tailwind
colors: {
  custom: {
    50: '#7873c0',
    500: '#303ea4',
    950: '#000000',
  },
}
SCSS
$custom: #303ea4;
$custom-light: #7873c0;
$custom-dark: #000000;
JSON
{
  "hex": "#303ea4",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 232.759,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4189,
    "c": 0.16378,
    "h": 271.4
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#303EA4
secondary
#BFB670
accent
#CC4ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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