#303AB8#303AB8

#303AB8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.0% C 0.195 H 271.5°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#303AB8
RGBrgb(48, 58, 184)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(73.9%, 68.5%, 0%, 27.8%)
CIE-LABlab(32.06, 39.27, -67.32)
CIE-LCHlch(32.06, 77.94, 300.25°)
OKLaboklab(43.04% 0.0052 -0.1947)
OKLCHoklch(43.04% 0.195 271.5)
XYZxyz(11.3808, 7.1140, 46.1115)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AB8 #B8AE30
analogous
#307EB8 #303AB8 #6A30B8
triadic
#303AB8 #B8303A #3AB830
tetradic
#303AB8 #B8307E #B8AE30 #30B86A
square
#303AB8 #B8307E #B8AE30 #30B86A
split-complementary
#303AB8 #B86A30 #7EB830
monochromatic
#171B57 #232B87 #303AB8 #535CD2 #848ADF

Accessibility & contrast

On white

8.67
#303AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#303AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AB8
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AB8#FFFFFF#000000##FFFFFF
##303AB81.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0045B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303ab8;
/* rgb */ color: rgb(48, 58, 184);
/* oklch */ color: oklch(43.0% 0.195 271.5);
Tailwind
colors: {
  custom: {
    50: '#7d71ce',
    500: '#303ab8',
    950: '#000000',
  },
}
SCSS
$custom: #303ab8;
$custom-light: #7d71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#303ab8",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 235.588,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43044,
    "c": 0.19481,
    "h": 271.5
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#303AB8
secondary
#C8C27C
accent
#D646E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #303AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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