#303BB1#303BB1

#303BB1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.185 H 271.6°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#303BB1
RGBrgb(48, 59, 177)
HSLhsl(235, 57%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(72.9%, 66.7%, 0%, 30.6%)
CIE-LABlab(31.65, 36.18, -63.85)
CIE-LCHlch(31.65, 73.39, 299.53°)
OKLaboklab(42.54% 0.0053 -0.1846)
OKLCHoklch(42.54% 0.185 271.6)
XYZxyz(10.7160, 6.9295, 42.3592)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BB1 #B1A630
analogous
#307CB1 #303BB1 #6630B1
triadic
#303BB1 #B1303B #3BB130
tetradic
#303BB1 #B1307C #B1A630 #30B166
square
#303BB1 #B1307C #B1A630 #30B166
split-complementary
#303BB1 #B16630 #7CB130
monochromatic
#161B51 #232B81 #303BB1 #4F5ACF #7F87DC

Accessibility & contrast

On white

8.80
#303BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#303BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BB1
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BB1#FFFFFF#000000##FFFFFF
##303BB11.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303bb1;
/* rgb */ color: rgb(48, 59, 177);
/* oklch */ color: oklch(42.5% 0.185 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b71c9',
    500: '#303bb1',
    950: '#000000',
  },
}
SCSS
$custom: #303bb1;
$custom-light: #7b71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#303bb1",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 234.884,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.18467,
    "h": 271.6
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#303BB1
secondary
#C5BF78
accent
#D447E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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