#303AA4#303AA4

#303AA4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.169 H 272.3°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#303AA4
RGBrgb(48, 58, 164)
HSLhsl(235, 55%, 42%)
HSVhsv(235, 71%, 64%)
CMYKcmyk(70.7%, 64.6%, 0%, 35.7%)
CIE-LABlab(30.24, 32.17, -58.37)
CIE-LCHlch(30.24, 66.64, 298.86°)
OKLaboklab(41.16% 0.0069 -0.1685)
OKLCHoklch(41.16% 0.169 272.3)
XYZxyz(9.4306, 6.3339, 35.8403)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AA4 #A49A30
analogous
#3074A4 #303AA4 #6030A4
triadic
#303AA4 #A4303A #3AA430
tetradic
#303AA4 #A43074 #A49A30 #30A460
square
#303AA4 #A43074 #A49A30 #30A460
split-complementary
#303AA4 #A46030 #74A430
monochromatic
#141945 #222975 #303AA4 #4853C9 #777FD7

Accessibility & contrast

On white

9.26
#303AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#303AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AA4
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AA4#FFFFFF#000000##FFFFFF
##303AA41.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303aa4;
/* rgb */ color: rgb(48, 58, 164);
/* oklch */ color: oklch(41.2% 0.169 272.3);
Tailwind
colors: {
  custom: {
    50: '#7870c0',
    500: '#303aa4',
    950: '#000000',
  },
}
SCSS
$custom: #303aa4;
$custom-light: #7870c0;
$custom-dark: #000000;
JSON
{
  "hex": "#303aa4",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 234.828,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41156,
    "c": 0.16868,
    "h": 272.3
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#303AA4
secondary
#BFB970
accent
#D14ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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