#303FA8#303FA8

#303FA8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.168 H 271.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#303FA8
RGBrgb(48, 63, 168)
HSLhsl(233, 56%, 42%)
HSVhsv(233, 71%, 66%)
CMYKcmyk(71.4%, 62.5%, 0%, 34.1%)
CIE-LABlab(31.83, 30.37, -58.18)
CIE-LCHlch(31.83, 65.63, 297.57°)
OKLaboklab(42.43% 0.003 -0.1679)
OKLCHoklch(42.43% 0.168 271)
XYZxyz(10.0619, 7.0095, 37.8609)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA8 #A89930
analogous
#307BA8 #303FA8 #5D30A8
triadic
#303FA8 #A8303F #3FA830
tetradic
#303FA8 #A8307B #A89930 #30A85D
square
#303FA8 #A8307B #A89930 #30A85D
split-complementary
#303FA8 #A85D30 #7BA830
monochromatic
#151B49 #222D78 #303FA8 #4A5ACB #7A85D9

Accessibility & contrast

On white

8.74
#303FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#303FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FA8
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA8#FFFFFF#000000##FFFFFF
##303FA81.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303fa8;
/* rgb */ color: rgb(48, 63, 168);
/* oklch */ color: oklch(42.4% 0.168 271.0);
Tailwind
colors: {
  custom: {
    50: '#7974c3',
    500: '#303fa8',
    950: '#000000',
  },
}
SCSS
$custom: #303fa8;
$custom-light: #7974c3;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa8",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 232.5,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42431,
    "c": 0.16797,
    "h": 271
  },
  "luminance": 0.07011
}

Semantic roles & 50–950 ramp

primary
#303FA8
secondary
#C1B773
accent
#CC49DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #303FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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