#303AB1#303AB1

#303AB1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.186 H 271.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#303AB1
RGBrgb(48, 58, 177)
HSLhsl(235, 57%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(72.9%, 67.2%, 0%, 30.6%)
CIE-LABlab(31.41, 36.80, -64.24)
CIE-LCHlch(31.41, 74.04, 299.81°)
OKLaboklab(42.37% 0.0059 -0.1857)
OKLCHoklch(42.37% 0.186 271.8)
XYZxyz(10.6651, 6.8277, 42.3423)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AB1 #B1A730
analogous
#307BB1 #303AB1 #6730B1
triadic
#303AB1 #B1303A #3AB130
tetradic
#303AB1 #B1307B #B1A730 #30B167
square
#303AB1 #B1307B #B1A730 #30B167
split-complementary
#303AB1 #B16730 #7BB130
monochromatic
#161A51 #232A81 #303AB1 #4F59CF #7F86DC

Accessibility & contrast

On white

8.88
#303AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303AB1
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AB1#FFFFFF#000000##FFFFFF
##303AB11.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303ab1;
/* rgb */ color: rgb(48, 58, 177);
/* oklch */ color: oklch(42.4% 0.186 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b70c9',
    500: '#303ab1',
    950: '#000000',
  },
}
SCSS
$custom: #303ab1;
$custom-light: #7b70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#303ab1",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 177
  },
  "hsl": {
    "h": 235.349,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42371,
    "c": 0.18582,
    "h": 271.8
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#303AB1
secondary
#C5BF78
accent
#D547E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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