#303DB5#303DB5

#303DB5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.3% C 0.188 H 271.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#303DB5
RGBrgb(48, 61, 181)
HSLhsl(234, 58%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(73.5%, 66.3%, 0%, 29%)
CIE-LABlab(32.48, 36.34, -64.86)
CIE-LCHlch(32.48, 74.34, 299.26°)
OKLaboklab(43.26% 0.0037 -0.1875)
OKLCHoklch(43.26% 0.188 271.1)
XYZxyz(11.2253, 7.3009, 44.5247)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DB5 #B5A830
analogous
#3080B5 #303DB5 #6530B5
triadic
#303DB5 #B5303D #3DB530
tetradic
#303DB5 #B53080 #B5A830 #30B565
square
#303DB5 #B53080 #B5A830 #30B565
split-complementary
#303DB5 #B56530 #80B530
monochromatic
#161C54 #232D85 #303DB5 #515ED1 #828BDE

Accessibility & contrast

On white

8.54
#303DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#303DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303DB5
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DB5#FFFFFF#000000##FFFFFF
##303DB51.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303db5;
/* rgb */ color: rgb(48, 61, 181);
/* oklch */ color: oklch(43.3% 0.188 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c72cc',
    500: '#303db5',
    950: '#000000',
  },
}
SCSS
$custom: #303db5;
$custom-light: #7c72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303db5",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 234.135,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43263,
    "c": 0.18757,
    "h": 271.1
  },
  "luminance": 0.07302
}

Semantic roles & 50–950 ramp

primary
#303DB5
secondary
#C7BF7A
accent
#D246E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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