#303F99#303F99

#303F99 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.147 H 271.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#303F99
RGBrgb(48, 63, 153)
HSLhsl(231, 52%, 39%)
HSVhsv(231, 69%, 60%)
CMYKcmyk(68.6%, 58.8%, 0%, 40%)
CIE-LABlab(30.60, 24.86, -51.12)
CIE-LCHlch(30.60, 56.84, 295.94°)
OKLaboklab(41.14% 0.0032 -0.1472)
OKLCHoklch(41.14% 0.147 271.2)
XYZxyz(8.7443, 6.4825, 30.9212)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303F99 #998A30
analogous
#307399 #303F99 #563099
triadic
#303F99 #99303F #3F9930
tetradic
#303F99 #993073 #998A30 #309956
square
#303F99 #993073 #998A30 #309956
split-complementary
#303F99 #995630 #739930
monochromatic
#13193C #212C6A #303F99 #4255C4 #717FD2

Accessibility & contrast

On white

9.14
#303F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#303F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303F99
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303F99#FFFFFF#000000##FFFFFF
##303F991.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303f99;
/* rgb */ color: rgb(48, 63, 153);
/* oklch */ color: oklch(41.1% 0.147 271.2);
Tailwind
colors: {
  custom: {
    50: '#7673b8',
    500: '#303f99',
    950: '#000000',
  },
}
SCSS
$custom: #303f99;
$custom-light: #7673b8;
$custom-dark: #000000;
JSON
{
  "hex": "#303f99",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 231.429,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41135,
    "c": 0.14724,
    "h": 271.2
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#303F99
secondary
#BAAF6B
accent
#C74CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #303F99

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

Preview Lab → · Contrast checker → · Palette generator →

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