#303EA1#303EA1

#303EA1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.160 H 271.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#303EA1
RGBrgb(48, 62, 161)
HSLhsl(233, 54%, 41%)
HSVhsv(233, 70%, 63%)
CMYKcmyk(70.2%, 61.5%, 0%, 36.9%)
CIE-LABlab(30.99, 28.47, -55.34)
CIE-LCHlch(30.99, 62.23, 297.22°)
OKLaboklab(41.63% 0.004 -0.1596)
OKLCHoklch(41.63% 0.16 271.4)
XYZxyz(9.3724, 6.6459, 34.5002)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EA1 #A19330
analogous
#3076A1 #303EA1 #5A30A1
triadic
#303EA1 #A1303E #3EA130
tetradic
#303EA1 #A13076 #A19330 #30A15A
square
#303EA1 #A13076 #A19330 #30A15A
split-complementary
#303EA1 #A15A30 #76A130
monochromatic
#141A43 #222C72 #303EA1 #4656C8 #7581D6

Accessibility & contrast

On white

9.02
#303EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#303EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EA1
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EA1#FFFFFF#000000##FFFFFF
##303EA11.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303ea1;
/* rgb */ color: rgb(48, 62, 161);
/* oklch */ color: oklch(41.6% 0.160 271.4);
Tailwind
colors: {
  custom: {
    50: '#7773be',
    500: '#303ea1',
    950: '#000000',
  },
}
SCSS
$custom: #303ea1;
$custom-light: #7773be;
$custom-dark: #000000;
JSON
{
  "hex": "#303ea1",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 232.566,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41627,
    "c": 0.15967,
    "h": 271.4
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#303EA1
secondary
#BEB46F
accent
#CB4ADD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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