#303AAF#303AAF

#303AAF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.183 H 271.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#303AAF
RGBrgb(48, 58, 175)
HSLhsl(235, 57%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(72.6%, 66.9%, 0%, 31.4%)
CIE-LABlab(31.23, 36.10, -63.35)
CIE-LCHlch(31.23, 72.91, 299.67°)
OKLaboklab(42.18% 0.0061 -0.1831)
OKLCHoklch(42.18% 0.183 271.9)
XYZxyz(10.4672, 6.7486, 41.3001)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AAF #AFA530
analogous
#3079AF #303AAF #6530AF
triadic
#303AAF #AF303A #3AAF30
tetradic
#303AAF #AF3079 #AFA530 #30AF65
square
#303AAF #AF3079 #AFA530 #30AF65
split-complementary
#303AAF #AF6530 #79AF30
monochromatic
#161A4F #232A7F #303AAF #4E58CE #7E85DC

Accessibility & contrast

On white

8.94
#303AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#303AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AAF
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AAF#FFFFFF#000000##FFFFFF
##303AAF1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303aaf;
/* rgb */ color: rgb(48, 58, 175);
/* oklch */ color: oklch(42.2% 0.183 271.9);
Tailwind
colors: {
  custom: {
    50: '#7b70c8',
    500: '#303aaf',
    950: '#000000',
  },
}
SCSS
$custom: #303aaf;
$custom-light: #7b70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#303aaf",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 235.276,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42181,
    "c": 0.18323,
    "h": 271.9
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#303AAF
secondary
#C4BE76
accent
#D448E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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