#303DA1#303DA1

#303DA1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.4% C 0.161 H 271.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#303DA1
RGBrgb(48, 61, 161)
HSLhsl(233, 54%, 41%)
HSVhsv(233, 70%, 63%)
CMYKcmyk(70.2%, 62.1%, 0%, 36.9%)
CIE-LABlab(30.73, 29.12, -55.75)
CIE-LCHlch(30.73, 62.90, 297.58°)
OKLaboklab(41.44% 0.0048 -0.1608)
OKLCHoklch(41.44% 0.161 271.7)
XYZxyz(9.3185, 6.5382, 34.4822)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DA1 #A19430
analogous
#3075A1 #303DA1 #5B30A1
triadic
#303DA1 #A1303D #3DA130
tetradic
#303DA1 #A13075 #A19430 #30A15B
square
#303DA1 #A13075 #A19430 #30A15B
split-complementary
#303DA1 #A15B30 #75A130
monochromatic
#141943 #222B72 #303DA1 #4655C8 #7581D6

Accessibility & contrast

On white

9.10
#303DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#303DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303DA1
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DA1#FFFFFF#000000##FFFFFF
##303DA11.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303da1;
/* rgb */ color: rgb(48, 61, 161);
/* oklch */ color: oklch(41.4% 0.161 271.7);
Tailwind
colors: {
  custom: {
    50: '#7872be',
    500: '#303da1',
    950: '#000000',
  },
}
SCSS
$custom: #303da1;
$custom-light: #7872be;
$custom-dark: #000000;
JSON
{
  "hex": "#303da1",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 161
  },
  "hsl": {
    "h": 233.097,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41438,
    "c": 0.16092,
    "h": 271.7
  },
  "luminance": 0.06539
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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