#303AA1#303AA1

#303AA1 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.165 H 272.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#303AA1
RGBrgb(48, 58, 161)
HSLhsl(235, 54%, 41%)
HSVhsv(235, 70%, 63%)
CMYKcmyk(70.2%, 64%, 0%, 36.9%)
CIE-LABlab(29.98, 31.08, -56.98)
CIE-LCHlch(29.98, 64.91, 298.61°)
OKLaboklab(40.88% 0.0071 -0.1645)
OKLCHoklch(40.88% 0.165 272.5)
XYZxyz(9.1628, 6.2268, 34.4303)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AA1 #A19730
analogous
#3072A1 #303AA1 #5E30A1
triadic
#303AA1 #A1303A #3AA130
tetradic
#303AA1 #A13072 #A19730 #30A15E
square
#303AA1 #A13072 #A19730 #30A15E
split-complementary
#303AA1 #A15E30 #72A130
monochromatic
#141843 #222972 #303AA1 #4652C8 #757ED6

Accessibility & contrast

On white

9.35
#303AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#303AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AA1
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AA1#FFFFFF#000000##FFFFFF
##303AA11.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303aa1;
/* rgb */ color: rgb(48, 58, 161);
/* oklch */ color: oklch(40.9% 0.165 272.5);
Tailwind
colors: {
  custom: {
    50: '#7870be',
    500: '#303aa1',
    950: '#000000',
  },
}
SCSS
$custom: #303aa1;
$custom-light: #7870be;
$custom-dark: #000000;
JSON
{
  "hex": "#303aa1",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 234.69,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40883,
    "c": 0.16464,
    "h": 272.5
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#303AA1
secondary
#BEB76F
accent
#D04ADD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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