#303BB5#303BB5

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

Color values

HEX#303BB5
RGBrgb(48, 59, 181)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.5%, 67.4%, 0%, 29%)
CIE-LABlab(32.01, 37.59, -65.63)
CIE-LCHlch(32.01, 75.63, 299.80°)
OKLaboklab(42.92% 0.0049 -0.1898)
OKLCHoklch(42.92% 0.19 271.5)
XYZxyz(11.1206, 7.0914, 44.4898)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BB5 #B5AA30
analogous
#307DB5 #303BB5 #6830B5
triadic
#303BB5 #B5303B #3BB530
tetradic
#303BB5 #B5307D #B5AA30 #30B568
square
#303BB5 #B5307D #B5AA30 #30B568
split-complementary
#303BB5 #B56830 #7DB530
monochromatic
#161B54 #232B85 #303BB5 #515CD1 #8289DE

Accessibility & contrast

On white

8.68
#303BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#303BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BB5
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BB5#FFFFFF#000000##FFFFFF
##303BB51.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303bb5;
/* rgb */ color: rgb(48, 59, 181);
/* oklch */ color: oklch(42.9% 0.190 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c71cc',
    500: '#303bb5',
    950: '#000000',
  },
}
SCSS
$custom: #303bb5;
$custom-light: #7c71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303bb5",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 235.038,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42922,
    "c": 0.18985,
    "h": 271.5
  },
  "luminance": 0.07093
}

Semantic roles & 50–950 ramp

primary
#303BB5
secondary
#C7C07A
accent
#D446E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #303BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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