#303AB6#303AB6

#303AB6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.9% C 0.192 H 271.6°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#303AB6
RGBrgb(48, 58, 182)
HSLhsl(236, 58%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(73.6%, 68.1%, 0%, 28.6%)
CIE-LABlab(31.88, 38.56, -66.45)
CIE-LCHlch(31.88, 76.83, 300.13°)
OKLaboklab(42.85% 0.0054 -0.1922)
OKLCHoklch(42.85% 0.192 271.6)
XYZxyz(11.1726, 7.0307, 45.0151)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AB6 #B6AC30
analogous
#307DB6 #303AB6 #6930B6
triadic
#303AB6 #B6303A #3AB630
tetradic
#303AB6 #B6307D #B6AC30 #30B669
square
#303AB6 #B6307D #B6AC30 #30B669
split-complementary
#303AB6 #B66930 #7DB630
monochromatic
#161B55 #232B86 #303AB6 #525BD1 #8289DE

Accessibility & contrast

On white

8.73
#303AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#303AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AB6
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AB6#FFFFFF#000000##FFFFFF
##303AB61.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#0045B4
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303ab6;
/* rgb */ color: rgb(48, 58, 182);
/* oklch */ color: oklch(42.9% 0.192 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d70cd',
    500: '#303ab6',
    950: '#000000',
  },
}
SCSS
$custom: #303ab6;
$custom-light: #7d70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#303ab6",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 235.522,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4285,
    "c": 0.19227,
    "h": 271.6
  },
  "luminance": 0.07032
}

Semantic roles & 50–950 ramp

primary
#303AB6
secondary
#C7C27B
accent
#D646E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #303AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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