#303FA1#303FA1

#303FA1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.158 H 271.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#303FA1
RGBrgb(48, 63, 161)
HSLhsl(232, 54%, 41%)
HSVhsv(232, 70%, 63%)
CMYKcmyk(70.2%, 60.9%, 0%, 36.9%)
CIE-LABlab(31.24, 27.81, -54.92)
CIE-LCHlch(31.24, 61.56, 296.86°)
OKLaboklab(41.82% 0.0032 -0.1584)
OKLCHoklch(41.82% 0.158 271.2)
XYZxyz(9.4273, 6.7557, 34.5185)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA1 #A19230
analogous
#3077A1 #303FA1 #5930A1
triadic
#303FA1 #A1303F #3FA130
tetradic
#303FA1 #A13077 #A19230 #30A159
square
#303FA1 #A13077 #A19230 #30A159
split-complementary
#303FA1 #A15930 #77A130
monochromatic
#141A43 #222D72 #303FA1 #4657C8 #7582D6

Accessibility & contrast

On white

8.93
#303FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303FA1
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA1#FFFFFF#000000##FFFFFF
##303FA11.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303fa1;
/* rgb */ color: rgb(48, 63, 161);
/* oklch */ color: oklch(41.8% 0.158 271.2);
Tailwind
colors: {
  custom: {
    50: '#7774be',
    500: '#303fa1',
    950: '#000000',
  },
}
SCSS
$custom: #303fa1;
$custom-light: #7774be;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa1",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 232.035,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41817,
    "c": 0.15841,
    "h": 271.2
  },
  "luminance": 0.06757
}

Semantic roles & 50–950 ramp

primary
#303FA1
secondary
#BEB36F
accent
#CA4ADD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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