#303EAF#303EAF

#303EAF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.179 H 271.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#303EAF
RGBrgb(48, 62, 175)
HSLhsl(233, 57%, 44%)
HSVhsv(233, 73%, 69%)
CMYKcmyk(72.6%, 64.6%, 0%, 31.4%)
CIE-LABlab(32.19, 33.56, -61.78)
CIE-LCHlch(32.19, 70.30, 298.51°)
OKLaboklab(42.88% 0.0034 -0.1785)
OKLCHoklch(42.88% 0.179 271.1)
XYZxyz(10.6768, 7.1677, 41.3699)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EAF #AFA130
analogous
#307DAF #303EAF #6130AF
triadic
#303EAF #AF303E #3EAF30
tetradic
#303EAF #AF307D #AFA130 #30AF61
square
#303EAF #AF307D #AFA130 #30AF61
split-complementary
#303EAF #AF6130 #7DAF30
monochromatic
#161C4F #232D7F #303EAF #4E5CCE #7E88DC

Accessibility & contrast

On white

8.63
#303EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#303EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EAF
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EAF#FFFFFF#000000##FFFFFF
##303EAF1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303eaf;
/* rgb */ color: rgb(48, 62, 175);
/* oklch */ color: oklch(42.9% 0.179 271.1);
Tailwind
colors: {
  custom: {
    50: '#7b73c8',
    500: '#303eaf',
    950: '#000000',
  },
}
SCSS
$custom: #303eaf;
$custom-light: #7b73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#303eaf",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 233.386,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42881,
    "c": 0.17854,
    "h": 271.1
  },
  "luminance": 0.07169
}

Semantic roles & 50–950 ramp

primary
#303EAF
secondary
#C4BC76
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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