#303AB2#303AB2

#303AB2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.187 H 271.8°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#303AB2
RGBrgb(48, 58, 178)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 73%, 70%)
CMYKcmyk(73%, 67.4%, 0%, 30.2%)
CIE-LABlab(31.50, 37.16, -64.68)
CIE-LCHlch(31.50, 74.60, 299.88°)
OKLaboklab(42.47% 0.0058 -0.187)
OKLCHoklch(42.47% 0.187 271.8)
XYZxyz(10.7651, 6.8677, 42.8691)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AB2 #B2A830
analogous
#307BB2 #303AB2 #6730B2
triadic
#303AB2 #B2303A #3AB230
tetradic
#303AB2 #B2307B #B2A830 #30B267
square
#303AB2 #B2307B #B2A830 #30B267
split-complementary
#303AB2 #B26730 #7BB230
monochromatic
#161B52 #232A82 #303AB2 #5059D0 #8087DD

Accessibility & contrast

On white

8.85
#303AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#303AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AB2
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AB2#FFFFFF#000000##FFFFFF
##303AB21.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303ab2;
/* rgb */ color: rgb(48, 58, 178);
/* oklch */ color: oklch(42.5% 0.187 271.8);
Tailwind
colors: {
  custom: {
    50: '#7c70ca',
    500: '#303ab2',
    950: '#000000',
  },
}
SCSS
$custom: #303ab2;
$custom-light: #7c70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#303ab2",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 235.385,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42466,
    "c": 0.18712,
    "h": 271.8
  },
  "luminance": 0.06869
}

Semantic roles & 50–950 ramp

primary
#303AB2
secondary
#C6C078
accent
#D547E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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