#303EB1#303EB1

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

Color values

HEX#303EB1
RGBrgb(48, 62, 177)
HSLhsl(233, 57%, 44%)
HSVhsv(233, 73%, 69%)
CMYKcmyk(72.9%, 65%, 0%, 30.6%)
CIE-LABlab(32.36, 34.28, -62.68)
CIE-LCHlch(32.36, 71.44, 298.67°)
OKLaboklab(43.07% 0.0033 -0.1811)
OKLCHoklch(43.07% 0.181 271)
XYZxyz(10.8747, 7.2468, 42.4121)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EB1 #B1A330
analogous
#307FB1 #303EB1 #6330B1
triadic
#303EB1 #B1303E #3EB130
tetradic
#303EB1 #B1307F #B1A330 #30B163
square
#303EB1 #B1307F #B1A330 #30B163
split-complementary
#303EB1 #B16330 #7FB130
monochromatic
#161C51 #232D81 #303EB1 #4F5DCF #7F89DC

Accessibility & contrast

On white

8.57
#303EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#303EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EB1
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EB1#FFFFFF#000000##FFFFFF
##303EB11.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303eb1;
/* rgb */ color: rgb(48, 62, 177);
/* oklch */ color: oklch(43.1% 0.181 271.0);
Tailwind
colors: {
  custom: {
    50: '#7b73c9',
    500: '#303eb1',
    950: '#000000',
  },
}
SCSS
$custom: #303eb1;
$custom-light: #7b73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#303eb1",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 177
  },
  "hsl": {
    "h": 233.488,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43065,
    "c": 0.18118,
    "h": 271
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#303EB1
secondary
#C5BD78
accent
#D047E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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