#303FA3#303FA3

#303FA3 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.161 H 271.1°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#303FA3
RGBrgb(48, 63, 163)
HSLhsl(232, 55%, 41%)
HSVhsv(232, 71%, 64%)
CMYKcmyk(70.6%, 61.3%, 0%, 36.1%)
CIE-LABlab(31.41, 28.54, -55.85)
CIE-LCHlch(31.41, 62.72, 297.07°)
OKLaboklab(41.99% 0.0032 -0.1611)
OKLCHoklch(41.99% 0.161 271.1)
XYZxyz(9.6050, 6.8268, 35.4547)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA3 #A39430
analogous
#3079A3 #303FA3 #5B30A3
triadic
#303FA3 #A3303F #3FA330
tetradic
#303FA3 #A33079 #A39430 #30A35B
square
#303FA3 #A33079 #A39430 #30A35B
split-complementary
#303FA3 #A35B30 #79A330
monochromatic
#141A44 #222D74 #303FA3 #4758C9 #7783D7

Accessibility & contrast

On white

8.88
#303FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303FA3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA3#FFFFFF#000000##FFFFFF
##303FA31.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303fa3;
/* rgb */ color: rgb(48, 63, 163);
/* oklch */ color: oklch(42.0% 0.161 271.1);
Tailwind
colors: {
  custom: {
    50: '#7874bf',
    500: '#303fa3',
    950: '#000000',
  },
}
SCSS
$custom: #303fa3;
$custom-light: #7874bf;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa3",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 163
  },
  "hsl": {
    "h": 232.174,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41991,
    "c": 0.16116,
    "h": 271.1
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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