#303FA6#303FA6

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

Color values

HEX#303FA6
RGBrgb(48, 63, 166)
HSLhsl(232, 55%, 42%)
HSVhsv(232, 71%, 65%)
CMYKcmyk(71.1%, 62%, 0%, 34.9%)
CIE-LABlab(31.66, 29.64, -57.25)
CIE-LCHlch(31.66, 64.47, 297.37°)
OKLaboklab(42.25% 0.0031 -0.1652)
OKLCHoklch(42.25% 0.165 271.1)
XYZxyz(9.8770, 6.9356, 36.8872)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA6 #A69730
analogous
#307AA6 #303FA6 #5C30A6
triadic
#303FA6 #A6303F #3FA630
tetradic
#303FA6 #A6307A #A69730 #30A65C
square
#303FA6 #A6307A #A69730 #30A65C
split-complementary
#303FA6 #A65C30 #7AA630
monochromatic
#151B47 #222D77 #303FA6 #4959CA #7885D8

Accessibility & contrast

On white

8.80
#303FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#303FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FA6
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA6#FFFFFF#000000##FFFFFF
##303FA61.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303fa6;
/* rgb */ color: rgb(48, 63, 166);
/* oklch */ color: oklch(42.3% 0.165 271.1);
Tailwind
colors: {
  custom: {
    50: '#7874c1',
    500: '#303fa6',
    950: '#000000',
  },
}
SCSS
$custom: #303fa6;
$custom-light: #7874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa6",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 232.373,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42254,
    "c": 0.16526,
    "h": 271.1
  },
  "luminance": 0.06937
}

Semantic roles & 50–950 ramp

primary
#303FA6
secondary
#C0B671
accent
#CC49DE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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