#303EA2#303EA2

#303EA2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.161 H 271.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#303EA2
RGBrgb(48, 62, 162)
HSLhsl(233, 54%, 41%)
HSVhsv(233, 70%, 64%)
CMYKcmyk(70.4%, 61.7%, 0%, 36.5%)
CIE-LABlab(31.07, 28.83, -55.80)
CIE-LCHlch(31.07, 62.81, 297.33°)
OKLaboklab(41.71% 0.004 -0.161)
OKLCHoklch(41.71% 0.161 271.4)
XYZxyz(9.4609, 6.6813, 34.9664)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EA2 #A29430
analogous
#3077A2 #303EA2 #5B30A2
triadic
#303EA2 #A2303E #3EA230
tetradic
#303EA2 #A23077 #A29430 #30A25B
square
#303EA2 #A23077 #A29430 #30A25B
split-complementary
#303EA2 #A25B30 #77A230
monochromatic
#141A44 #222C73 #303EA2 #4757C8 #7682D6

Accessibility & contrast

On white

8.99
#303EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#303EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EA2
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EA2#FFFFFF#000000##FFFFFF
##303EA21.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303ea2;
/* rgb */ color: rgb(48, 62, 162);
/* oklch */ color: oklch(41.7% 0.161 271.4);
Tailwind
colors: {
  custom: {
    50: '#7873be',
    500: '#303ea2',
    950: '#000000',
  },
}
SCSS
$custom: #303ea2;
$custom-light: #7873be;
$custom-dark: #000000;
JSON
{
  "hex": "#303ea2",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 232.632,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41714,
    "c": 0.16104,
    "h": 271.4
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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