#303BB7#303BB7

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

Color values

HEX#303BB7
RGBrgb(48, 59, 183)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 74%, 72%)
CMYKcmyk(73.8%, 67.8%, 0%, 28.2%)
CIE-LABlab(32.20, 38.30, -66.51)
CIE-LCHlch(32.20, 76.75, 299.93°)
OKLaboklab(43.11% 0.0047 -0.1924)
OKLCHoklch(43.11% 0.192 271.4)
XYZxyz(11.3272, 7.1740, 45.5783)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BB7 #B7AC30
analogous
#307FB7 #303BB7 #6830B7
triadic
#303BB7 #B7303B #3BB730
tetradic
#303BB7 #B7307F #B7AC30 #30B768
square
#303BB7 #B7307F #B7AC30 #30B768
split-complementary
#303BB7 #B76830 #7FB730
monochromatic
#171C56 #232B87 #303BB7 #525DD2 #838ADE

Accessibility & contrast

On white

8.62
#303BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#303BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BB7
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BB7#FFFFFF#000000##FFFFFF
##303BB71.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0045B5
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303bb7;
/* rgb */ color: rgb(48, 59, 183);
/* oklch */ color: oklch(43.1% 0.192 271.4);
Tailwind
colors: {
  custom: {
    50: '#7d71ce',
    500: '#303bb7',
    950: '#000000',
  },
}
SCSS
$custom: #303bb7;
$custom-light: #7d71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#303bb7",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 235.111,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43113,
    "c": 0.19242,
    "h": 271.4
  },
  "luminance": 0.07175
}

Semantic roles & 50–950 ramp

primary
#303BB7
secondary
#C8C17B
accent
#D546E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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