#303A9E#303A9E

#303A9E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.161 H 272.6°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#303A9E
RGBrgb(48, 58, 158)
HSLhsl(235, 53%, 40%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(69.6%, 63.3%, 0%, 38%)
CIE-LABlab(29.72, 30.00, -55.59)
CIE-LCHlch(29.72, 63.17, 298.35°)
OKLaboklab(40.61% 0.0072 -0.1604)
OKLCHoklch(40.61% 0.161 272.6)
XYZxyz(8.9015, 6.1223, 33.0537)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A9E #9E9430
analogous
#30719E #303A9E #5D309E
triadic
#303A9E #9E303A #3A9E30
tetradic
#303A9E #9E3071 #9E9430 #309E5D
square
#303A9E #9E3071 #9E9430 #309E5D
split-complementary
#303A9E #9E5D30 #719E30
monochromatic
#131840 #22296F #303A9E #4551C6 #747DD5

Accessibility & contrast

On white

9.44
#303A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#303A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303A9E
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A9E#FFFFFF#000000##FFFFFF
##303A9E1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #303a9e;
/* rgb */ color: rgb(48, 58, 158);
/* oklch */ color: oklch(40.6% 0.161 272.6);
Tailwind
colors: {
  custom: {
    50: '#7770bc',
    500: '#303a9e',
    950: '#000000',
  },
}
SCSS
$custom: #303a9e;
$custom-light: #7770bc;
$custom-dark: #000000;
JSON
{
  "hex": "#303a9e",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 158
  },
  "hsl": {
    "h": 234.545,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40612,
    "c": 0.16056,
    "h": 272.6
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#303A9E
secondary
#BDB56D
accent
#D04BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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