#303CB3#303CB3

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

Color values

HEX#303CB3
RGBrgb(48, 60, 179)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 70%)
CMYKcmyk(73.2%, 66.5%, 0%, 29.8%)
CIE-LABlab(32.06, 36.26, -64.36)
CIE-LCHlch(32.06, 73.87, 299.40°)
OKLaboklab(42.9% 0.0045 -0.1861)
OKLCHoklch(42.9% 0.186 271.4)
XYZxyz(10.9687, 7.1136, 43.4341)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CB3 #B3A730
analogous
#307EB3 #303CB3 #6630B3
triadic
#303CB3 #B3303C #3CB330
tetradic
#303CB3 #B3307E #B3A730 #30B366
square
#303CB3 #B3307E #B3A730 #30B366
split-complementary
#303CB3 #B36630 #7EB330
monochromatic
#161C52 #232C83 #303CB3 #505CD0 #8089DD

Accessibility & contrast

On white

8.67
#303CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303CB3
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CB3#FFFFFF#000000##FFFFFF
##303CB31.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303cb3;
/* rgb */ color: rgb(48, 60, 179);
/* oklch */ color: oklch(42.9% 0.186 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c72cb',
    500: '#303cb3',
    950: '#000000',
  },
}
SCSS
$custom: #303cb3;
$custom-light: #7c72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#303cb3",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 179
  },
  "hsl": {
    "h": 234.504,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.18612,
    "h": 271.4
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#303CB3
secondary
#C6BF79
accent
#D347E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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