#303EA6#303EA6

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

Color values

HEX#303EA6
RGBrgb(48, 62, 166)
HSLhsl(233, 55%, 42%)
HSVhsv(233, 71%, 65%)
CMYKcmyk(71.1%, 62.7%, 0%, 34.9%)
CIE-LABlab(31.41, 30.29, -57.66)
CIE-LCHlch(31.41, 65.14, 297.72°)
OKLaboklab(42.07% 0.0038 -0.1664)
OKLCHoklch(42.07% 0.166 271.3)
XYZxyz(9.8222, 6.8258, 36.8689)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EA6 #A69830
analogous
#3079A6 #303EA6 #5D30A6
triadic
#303EA6 #A6303E #3EA630
tetradic
#303EA6 #A63079 #A69830 #30A65D
square
#303EA6 #A63079 #A69830 #30A65D
split-complementary
#303EA6 #A65D30 #79A630
monochromatic
#151B47 #222C77 #303EA6 #4958CA #7884D8

Accessibility & contrast

On white

8.88
#303EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#303EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EA6
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EA6#FFFFFF#000000##FFFFFF
##303EA61.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303ea6;
/* rgb */ color: rgb(48, 62, 166);
/* oklch */ color: oklch(42.1% 0.166 271.3);
Tailwind
colors: {
  custom: {
    50: '#7973c1',
    500: '#303ea6',
    950: '#000000',
  },
}
SCSS
$custom: #303ea6;
$custom-light: #7973c1;
$custom-dark: #000000;
JSON
{
  "hex": "#303ea6",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 232.881,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42068,
    "c": 0.16649,
    "h": 271.3
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#303EA6
secondary
#C0B771
accent
#CD49DE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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