#303AA8#303AA8

#303AA8 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.174 H 272.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#303AA8
RGBrgb(48, 58, 168)
HSLhsl(235, 56%, 42%)
HSVhsv(235, 71%, 66%)
CMYKcmyk(71.4%, 65.5%, 0%, 34.1%)
CIE-LABlab(30.59, 33.60, -60.20)
CIE-LCHlch(30.59, 68.94, 299.17°)
OKLaboklab(41.53% 0.0066 -0.1739)
OKLCHoklch(41.53% 0.174 272.2)
XYZxyz(9.7975, 6.4807, 37.7728)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AA8 #A89E30
analogous
#3076A8 #303AA8 #6230A8
triadic
#303AA8 #A8303A #3AA830
tetradic
#303AA8 #A83076 #A89E30 #30A862
square
#303AA8 #A83076 #A89E30 #30A862
split-complementary
#303AA8 #A86230 #76A830
monochromatic
#151949 #222A78 #303AA8 #4A55CB #7A81D9

Accessibility & contrast

On white

9.14
#303AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#303AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AA8
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AA8#FFFFFF#000000##FFFFFF
##303AA81.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303aa8;
/* rgb */ color: rgb(48, 58, 168);
/* oklch */ color: oklch(41.5% 0.174 272.2);
Tailwind
colors: {
  custom: {
    50: '#7970c3',
    500: '#303aa8',
    950: '#000000',
  },
}
SCSS
$custom: #303aa8;
$custom-light: #7970c3;
$custom-dark: #000000;
JSON
{
  "hex": "#303aa8",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 235,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41525,
    "c": 0.17403,
    "h": 272.2
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#303AA8
secondary
#C1BB73
accent
#D249DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #303AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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