#303FA4#303FA4

#303FA4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.163 H 271.1°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#303FA4
RGBrgb(48, 63, 164)
HSLhsl(232, 55%, 42%)
HSVhsv(232, 71%, 64%)
CMYKcmyk(70.7%, 61.6%, 0%, 35.7%)
CIE-LABlab(31.49, 28.91, -56.32)
CIE-LCHlch(31.49, 63.31, 297.17°)
OKLaboklab(42.08% 0.0031 -0.1625)
OKLCHoklch(42.08% 0.163 271.1)
XYZxyz(9.6950, 6.8628, 35.9285)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA4 #A49530
analogous
#3079A4 #303FA4 #5B30A4
triadic
#303FA4 #A4303F #3FA430
tetradic
#303FA4 #A43079 #A49530 #30A45B
square
#303FA4 #A43079 #A49530 #30A45B
split-complementary
#303FA4 #A45B30 #79A430
monochromatic
#141B45 #222D75 #303FA4 #4859C9 #7784D7

Accessibility & contrast

On white

8.85
#303FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#303FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FA4
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA4#FFFFFF#000000##FFFFFF
##303FA41.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303fa4;
/* rgb */ color: rgb(48, 63, 164);
/* oklch */ color: oklch(42.1% 0.163 271.1);
Tailwind
colors: {
  custom: {
    50: '#7874c0',
    500: '#303fa4',
    950: '#000000',
  },
}
SCSS
$custom: #303fa4;
$custom-light: #7874c0;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa4",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 232.241,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42078,
    "c": 0.16253,
    "h": 271.1
  },
  "luminance": 0.06864
}

Semantic roles & 50–950 ramp

primary
#303FA4
secondary
#BFB570
accent
#CB4ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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