#303AB5#303AB5

#303AB5 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.191 H 271.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#303AB5
RGBrgb(48, 58, 181)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.5%, 68%, 0%, 29%)
CIE-LABlab(31.78, 38.21, -66.01)
CIE-LCHlch(31.78, 76.27, 300.07°)
OKLaboklab(42.75% 0.0055 -0.1909)
OKLCHoklch(42.75% 0.191 271.7)
XYZxyz(11.0696, 6.9895, 44.4728)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AB5 #B5AB30
analogous
#307CB5 #303AB5 #6930B5
triadic
#303AB5 #B5303A #3AB530
tetradic
#303AB5 #B5307C #B5AB30 #30B569
square
#303AB5 #B5307C #B5AB30 #30B569
split-complementary
#303AB5 #B56930 #7CB530
monochromatic
#161B54 #232A85 #303AB5 #515BD1 #8289DE

Accessibility & contrast

On white

8.76
#303AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#303AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AB5
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AB5#FFFFFF#000000##FFFFFF
##303AB51.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303ab5;
/* rgb */ color: rgb(48, 58, 181);
/* oklch */ color: oklch(42.8% 0.191 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c70cc',
    500: '#303ab5',
    950: '#000000',
  },
}
SCSS
$custom: #303ab5;
$custom-light: #7c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303ab5",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 181
  },
  "hsl": {
    "h": 235.489,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.19098,
    "h": 271.7
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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