#303FA5#303FA5

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

Color values

HEX#303FA5
RGBrgb(48, 63, 165)
HSLhsl(232, 55%, 42%)
HSVhsv(232, 71%, 65%)
CMYKcmyk(70.9%, 61.8%, 0%, 35.3%)
CIE-LABlab(31.58, 29.28, -56.79)
CIE-LCHlch(31.58, 63.89, 297.27°)
OKLaboklab(42.17% 0.0031 -0.1639)
OKLCHoklch(42.17% 0.164 271.1)
XYZxyz(9.7857, 6.8990, 36.4060)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA5 #A59630
analogous
#307AA5 #303FA5 #5C30A5
triadic
#303FA5 #A5303F #3FA530
tetradic
#303FA5 #A5307A #A59630 #30A55C
square
#303FA5 #A5307A #A59630 #30A55C
split-complementary
#303FA5 #A55C30 #7AA530
monochromatic
#141B46 #222D76 #303FA5 #4859CA #7884D8

Accessibility & contrast

On white

8.82
#303FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#303FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FA5
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA5#FFFFFF#000000##FFFFFF
##303FA51.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303fa5;
/* rgb */ color: rgb(48, 63, 165);
/* oklch */ color: oklch(42.2% 0.164 271.1);
Tailwind
colors: {
  custom: {
    50: '#7874c1',
    500: '#303fa5',
    950: '#000000',
  },
}
SCSS
$custom: #303fa5;
$custom-light: #7874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa5",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 232.308,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.16389,
    "h": 271.1
  },
  "luminance": 0.069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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