#303AA5#303AA5

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

Color values

HEX#303AA5
RGBrgb(48, 58, 165)
HSLhsl(235, 55%, 42%)
HSVhsv(235, 71%, 65%)
CMYKcmyk(70.9%, 64.8%, 0%, 35.3%)
CIE-LABlab(30.33, 32.52, -58.83)
CIE-LCHlch(30.33, 67.22, 298.94°)
OKLaboklab(41.25% 0.0068 -0.1699)
OKLCHoklch(41.25% 0.17 272.3)
XYZxyz(9.5212, 6.3702, 36.3178)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AA5 #A59B30
analogous
#3075A5 #303AA5 #6130A5
triadic
#303AA5 #A5303A #3AA530
tetradic
#303AA5 #A53075 #A59B30 #30A561
square
#303AA5 #A53075 #A59B30 #30A561
split-complementary
#303AA5 #A56130 #75A530
monochromatic
#141946 #222976 #303AA5 #4853CA #7880D8

Accessibility & contrast

On white

9.23
#303AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303AA5
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AA5#FFFFFF#000000##FFFFFF
##303AA51.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303aa5;
/* rgb */ color: rgb(48, 58, 165);
/* oklch */ color: oklch(41.2% 0.170 272.3);
Tailwind
colors: {
  custom: {
    50: '#7970c1',
    500: '#303aa5',
    950: '#000000',
  },
}
SCSS
$custom: #303aa5;
$custom-light: #7970c1;
$custom-dark: #000000;
JSON
{
  "hex": "#303aa5",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 234.872,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41248,
    "c": 0.17003,
    "h": 272.3
  },
  "luminance": 0.06371
}

Semantic roles & 50–950 ramp

primary
#303AA5
secondary
#C0B971
accent
#D24ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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