#303CB2#303CB2

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

Color values

HEX#303CB2
RGBrgb(48, 60, 178)
HSLhsl(234, 58%, 44%)
HSVhsv(234, 73%, 70%)
CMYKcmyk(73%, 66.3%, 0%, 30.2%)
CIE-LABlab(31.97, 35.90, -63.91)
CIE-LCHlch(31.97, 73.31, 299.32°)
OKLaboklab(42.81% 0.0046 -0.1848)
OKLCHoklch(42.81% 0.185 271.4)
XYZxyz(10.8679, 7.0733, 42.9034)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CB2 #B2A630
analogous
#307DB2 #303CB2 #6530B2
triadic
#303CB2 #B2303C #3CB230
tetradic
#303CB2 #B2307D #B2A630 #30B265
square
#303CB2 #B2307D #B2A630 #30B265
split-complementary
#303CB2 #B26530 #7DB230
monochromatic
#161C52 #232C82 #303CB2 #505BD0 #8088DD

Accessibility & contrast

On white

8.70
#303CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303CB2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CB2#FFFFFF#000000##FFFFFF
##303CB21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303cb2;
/* rgb */ color: rgb(48, 60, 178);
/* oklch */ color: oklch(42.8% 0.185 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b72ca',
    500: '#303cb2',
    950: '#000000',
  },
}
SCSS
$custom: #303cb2;
$custom-light: #7b72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#303cb2",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 234.462,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42808,
    "c": 0.18483,
    "h": 271.4
  },
  "luminance": 0.07074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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