#303BB4#303BB4

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

Color values

HEX#303BB4
RGBrgb(48, 59, 180)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.3%, 67.2%, 0%, 29.4%)
CIE-LABlab(31.92, 37.24, -65.19)
CIE-LCHlch(31.92, 75.07, 299.74°)
OKLaboklab(42.83% 0.005 -0.1885)
OKLCHoklch(42.83% 0.189 271.5)
XYZxyz(11.0183, 7.0505, 43.9514)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BB4 #B4A930
analogous
#307DB4 #303BB4 #6730B4
triadic
#303BB4 #B4303B #3BB430
tetradic
#303BB4 #B4307D #B4A930 #30B467
square
#303BB4 #B4307D #B4A930 #30B467
split-complementary
#303BB4 #B46730 #7DB430
monochromatic
#161B53 #232B84 #303BB4 #515BD1 #8189DD

Accessibility & contrast

On white

8.71
#303BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303BB4
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BB4#FFFFFF#000000##FFFFFF
##303BB41.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303bb4;
/* rgb */ color: rgb(48, 59, 180);
/* oklch */ color: oklch(42.8% 0.189 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c71cc',
    500: '#303bb4',
    950: '#000000',
  },
}
SCSS
$custom: #303bb4;
$custom-light: #7c71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303bb4",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 180
  },
  "hsl": {
    "h": 235,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42826,
    "c": 0.18857,
    "h": 271.5
  },
  "luminance": 0.07052
}

Semantic roles & 50–950 ramp

primary
#303BB4
secondary
#C6C079
accent
#D447E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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