#303AC5#303AC5

#303AC5 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.3% C 0.211 H 271.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#303AC5
RGBrgb(48, 58, 197)
HSLhsl(236, 61%, 48%)
HSVhsv(236, 76%, 77%)
CMYKcmyk(75.6%, 70.6%, 0%, 22.7%)
CIE-LABlab(33.32, 43.76, -72.91)
CIE-LCHlch(33.32, 85.03, 300.97°)
OKLaboklab(44.33% 0.0037 -0.211)
OKLCHoklch(44.33% 0.211 271)
XYZxyz(12.8066, 7.6843, 53.6208)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AC5 #C5BB30
analogous
#3084C5 #303AC5 #7030C5
triadic
#303AC5 #C5303A #3AC530
tetradic
#303AC5 #C53084 #C5BB30 #30C570
square
#303AC5 #C53084 #C5BB30 #30C570
split-complementary
#303AC5 #C57030 #84C530
monochromatic
#181D63 #242C94 #303AC5 #5B63D7 #8C92E3

Accessibility & contrast

On white

8.28
#303AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#303AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AC5
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AC5#FFFFFF#000000##FFFFFF
##303AC51.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0047C2
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #303ac5;
/* rgb */ color: rgb(48, 58, 197);
/* oklch */ color: oklch(44.3% 0.211 271.0);
Tailwind
colors: {
  custom: {
    50: '#8071d8',
    500: '#303ac5',
    950: '#000000',
  },
}
SCSS
$custom: #303ac5;
$custom-light: #8071d8;
$custom-dark: #000000;
JSON
{
  "hex": "#303ac5",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 197
  },
  "hsl": {
    "h": 235.973,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44325,
    "c": 0.21108,
    "h": 271
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#303AC5
secondary
#CDC884
accent
#D944E4
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #303AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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