#303FA0#303FA0

#303FA0 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.157 H 271.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#303FA0
RGBrgb(48, 63, 160)
HSLhsl(232, 54%, 41%)
HSVhsv(232, 70%, 63%)
CMYKcmyk(70%, 60.6%, 0%, 37.3%)
CIE-LABlab(31.16, 27.44, -54.45)
CIE-LCHlch(31.16, 60.97, 296.75°)
OKLaboklab(41.73% 0.0032 -0.157)
OKLCHoklch(41.73% 0.157 271.2)
XYZxyz(9.3394, 6.7206, 34.0559)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA0 #A09130
analogous
#3077A0 #303FA0 #5930A0
triadic
#303FA0 #A0303F #3FA030
tetradic
#303FA0 #A03077 #A09130 #30A059
square
#303FA0 #A03077 #A09130 #30A059
split-complementary
#303FA0 #A05930 #77A030
monochromatic
#141A42 #222C71 #303FA0 #4657C7 #7582D6

Accessibility & contrast

On white

8.96
#303FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#303FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FA0
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA0#FFFFFF#000000##FFFFFF
##303FA01.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303fa0;
/* rgb */ color: rgb(48, 63, 160);
/* oklch */ color: oklch(41.7% 0.157 271.2);
Tailwind
colors: {
  custom: {
    50: '#7774bd',
    500: '#303fa0',
    950: '#000000',
  },
}
SCSS
$custom: #303fa0;
$custom-light: #7774bd;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa0",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 160
  },
  "hsl": {
    "h": 231.964,
    "s": 53.846,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41731,
    "c": 0.15702,
    "h": 271.2
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#303FA0
secondary
#BEB36E
accent
#CA4BDD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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