#303FAC#303FAC

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

Color values

HEX#303FAC
RGBrgb(48, 63, 172)
HSLhsl(233, 56%, 43%)
HSVhsv(233, 72%, 67%)
CMYKcmyk(72.1%, 63.4%, 0%, 32.5%)
CIE-LABlab(32.17, 31.83, -60.01)
CIE-LCHlch(32.17, 67.93, 297.94°)
OKLaboklab(42.79% 0.0029 -0.1733)
OKLCHoklch(42.79% 0.173 271)
XYZxyz(10.4403, 7.1609, 39.8537)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FAC #AC9D30
analogous
#307DAC #303FAC #5F30AC
triadic
#303FAC #AC303F #3FAC30
tetradic
#303FAC #AC307D #AC9D30 #30AC5F
square
#303FAC #AC307D #AC9D30 #30AC5F
split-complementary
#303FAC #AC5F30 #7DAC30
monochromatic
#151C4C #232D7C #303FAC #4C5CCD #7C87DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##303FAC#FFFFFF#000000##FFFFFF
##303FAC1.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)
#0052B0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303fac;
/* rgb */ color: rgb(48, 63, 172);
/* oklch */ color: oklch(42.8% 0.173 271.0);
Tailwind
colors: {
  custom: {
    50: '#7a74c6',
    500: '#303fac',
    950: '#000000',
  },
}
SCSS
$custom: #303fac;
$custom-light: #7a74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#303fac",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 232.742,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42789,
    "c": 0.17335,
    "h": 271
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#303FAC
secondary
#C3BA75
accent
#CD48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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