#303A99#303A99

#303A99 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.154 H 272.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#303A99
RGBrgb(48, 58, 153)
HSLhsl(234, 52%, 39%)
HSVhsv(234, 69%, 60%)
CMYKcmyk(68.6%, 62.1%, 0%, 40%)
CIE-LABlab(29.30, 28.18, -53.24)
CIE-LCHlch(29.30, 60.24, 297.89°)
OKLaboklab(40.17% 0.0074 -0.1535)
OKLCHoklch(40.17% 0.154 272.8)
XYZxyz(8.4798, 5.9536, 30.8331)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A99 #998F30
analogous
#306F99 #303A99 #5B3099
triadic
#303A99 #99303A #3A9930
tetradic
#303A99 #99306F #998F30 #30995B
square
#303A99 #99306F #998F30 #30995B
split-complementary
#303A99 #995B30 #6F9930
monochromatic
#13173C #21286A #303A99 #424FC4 #717AD2

Accessibility & contrast

On white

9.59
#303A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#303A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303A99
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A99#FFFFFF#000000##FFFFFF
##303A991.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303a99;
/* rgb */ color: rgb(48, 58, 153);
/* oklch */ color: oklch(40.2% 0.154 272.8);
Tailwind
colors: {
  custom: {
    50: '#7670b8',
    500: '#303a99',
    950: '#000000',
  },
}
SCSS
$custom: #303a99;
$custom-light: #7670b8;
$custom-dark: #000000;
JSON
{
  "hex": "#303a99",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 153
  },
  "hsl": {
    "h": 234.286,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40168,
    "c": 0.15368,
    "h": 272.8
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#303A99
secondary
#BAB36B
accent
#CE4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #303A99

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

Preview Lab → · Contrast checker → · Palette generator →

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