#303CAE#303CAE

#303CAE is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.180 H 271.5°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#303CAE
RGBrgb(48, 60, 174)
HSLhsl(234, 57%, 44%)
HSVhsv(234, 72%, 68%)
CMYKcmyk(72.4%, 65.5%, 0%, 31.8%)
CIE-LABlab(31.61, 34.47, -62.12)
CIE-LCHlch(31.61, 71.04, 299.03°)
OKLaboklab(42.43% 0.0049 -0.1795)
OKLCHoklch(42.43% 0.18 271.5)
XYZxyz(10.4722, 6.9150, 40.8190)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CAE #AEA230
analogous
#307BAE #303CAE #6330AE
triadic
#303CAE #AE303C #3CAE30
tetradic
#303CAE #AE307B #AEA230 #30AE63
square
#303CAE #AE307B #AEA230 #30AE63
split-complementary
#303CAE #AE6330 #7BAE30
monochromatic
#161B4E #232B7E #303CAE #4D59CE #7D86DB

Accessibility & contrast

On white

8.81
#303CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#303CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CAE
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CAE#FFFFFF#000000##FFFFFF
##303CAE1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303cae;
/* rgb */ color: rgb(48, 60, 174);
/* oklch */ color: oklch(42.4% 0.180 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b72c7',
    500: '#303cae',
    950: '#000000',
  },
}
SCSS
$custom: #303cae;
$custom-light: #7b72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#303cae",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 174
  },
  "hsl": {
    "h": 234.286,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42434,
    "c": 0.17959,
    "h": 271.5
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#303CAE
secondary
#C4BC76
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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