#303CB1#303CB1

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

Color values

HEX#303CB1
RGBrgb(48, 60, 177)
HSLhsl(234, 57%, 44%)
HSVhsv(234, 73%, 69%)
CMYKcmyk(72.9%, 66.1%, 0%, 30.6%)
CIE-LABlab(31.88, 35.55, -63.47)
CIE-LCHlch(31.88, 72.74, 299.25°)
OKLaboklab(42.71% 0.0046 -0.1835)
OKLCHoklch(42.71% 0.184 271.4)
XYZxyz(10.7679, 7.0333, 42.3765)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CB1 #B1A530
analogous
#307DB1 #303CB1 #6530B1
triadic
#303CB1 #B1303C #3CB130
tetradic
#303CB1 #B1307D #B1A530 #30B165
square
#303CB1 #B1307D #B1A530 #30B165
split-complementary
#303CB1 #B16530 #7DB130
monochromatic
#161B51 #232C81 #303CB1 #4F5BCF #7F88DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##303CB1#FFFFFF#000000##FFFFFF
##303CB11.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)
#0051B5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303cb1;
/* rgb */ color: rgb(48, 60, 177);
/* oklch */ color: oklch(42.7% 0.184 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b72c9',
    500: '#303cb1',
    950: '#000000',
  },
}
SCSS
$custom: #303cb1;
$custom-light: #7b72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#303cb1",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 177
  },
  "hsl": {
    "h": 234.419,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42714,
    "c": 0.18352,
    "h": 271.4
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#303CB1
secondary
#C5BE78
accent
#D247E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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