#303AB9#303AB9

#303AB9 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.196 H 271.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#303AB9
RGBrgb(48, 58, 185)
HSLhsl(236, 59%, 46%)
HSVhsv(236, 74%, 73%)
CMYKcmyk(74.1%, 68.6%, 0%, 27.5%)
CIE-LABlab(32.16, 39.61, -67.76)
CIE-LCHlch(32.16, 78.49, 300.31°)
OKLaboklab(43.14% 0.0051 -0.196)
OKLCHoklch(43.14% 0.196 271.5)
XYZxyz(11.4860, 7.1561, 46.6655)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AB9 #B9AF30
analogous
#307FB9 #303AB9 #6A30B9
triadic
#303AB9 #B9303A #3AB930
tetradic
#303AB9 #B9307F #B9AF30 #30B96A
square
#303AB9 #B9307F #B9AF30 #30B96A
split-complementary
#303AB9 #B96A30 #7FB930
monochromatic
#171C58 #232B88 #303AB9 #545DD3 #848BDF

Accessibility & contrast

On white

8.64
#303AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#303AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AB9
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AB9#FFFFFF#000000##FFFFFF
##303AB91.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#005D75
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303ab9;
/* rgb */ color: rgb(48, 58, 185);
/* oklch */ color: oklch(43.1% 0.196 271.5);
Tailwind
colors: {
  custom: {
    50: '#7d71cf',
    500: '#303ab9',
    950: '#000000',
  },
}
SCSS
$custom: #303ab9;
$custom-light: #7d71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#303ab9",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 185
  },
  "hsl": {
    "h": 235.62,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43141,
    "c": 0.19609,
    "h": 271.5
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

primary
#303AB9
secondary
#C9C37C
accent
#D746E2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #303AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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