#303EA5#303EA5

#303EA5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.165 H 271.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#303EA5
RGBrgb(48, 62, 165)
HSLhsl(233, 55%, 42%)
HSVhsv(233, 71%, 65%)
CMYKcmyk(70.9%, 62.4%, 0%, 35.3%)
CIE-LABlab(31.32, 29.93, -57.20)
CIE-LCHlch(31.32, 64.56, 297.62°)
OKLaboklab(41.98% 0.0039 -0.1651)
OKLCHoklch(41.98% 0.165 271.3)
XYZxyz(9.7308, 6.7893, 36.3877)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EA5 #A59730
analogous
#3079A5 #303EA5 #5D30A5
triadic
#303EA5 #A5303E #3EA530
tetradic
#303EA5 #A53079 #A59730 #30A55D
square
#303EA5 #A53079 #A59730 #30A55D
split-complementary
#303EA5 #A55D30 #79A530
monochromatic
#141A46 #222C76 #303EA5 #4858CA #7883D8

Accessibility & contrast

On white

8.91
#303EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303EA5
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EA5#FFFFFF#000000##FFFFFF
##303EA51.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303ea5;
/* rgb */ color: rgb(48, 62, 165);
/* oklch */ color: oklch(42.0% 0.165 271.3);
Tailwind
colors: {
  custom: {
    50: '#7873c1',
    500: '#303ea5',
    950: '#000000',
  },
}
SCSS
$custom: #303ea5;
$custom-light: #7873c1;
$custom-dark: #000000;
JSON
{
  "hex": "#303ea5",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 232.821,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41979,
    "c": 0.16514,
    "h": 271.3
  },
  "luminance": 0.0679
}

Semantic roles & 50–950 ramp

primary
#303EA5
secondary
#C0B671
accent
#CC4ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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