#303C9F#303C9F

#303C9F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.159 H 272.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#303C9F
RGBrgb(48, 60, 159)
HSLhsl(234, 54%, 41%)
HSVhsv(234, 70%, 62%)
CMYKcmyk(69.8%, 62.3%, 0%, 37.6%)
CIE-LABlab(30.31, 29.05, -55.23)
CIE-LCHlch(30.31, 62.41, 297.74°)
OKLaboklab(41.07% 0.0056 -0.1593)
OKLCHoklch(41.07% 0.159 272)
XYZxyz(9.0907, 6.3624, 33.5432)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C9F #9F9330
analogous
#30739F #303C9F #5C309F
triadic
#303C9F #9F303C #3C9F30
tetradic
#303C9F #9F3073 #9F9330 #309F5C
square
#303C9F #9F3073 #9F9330 #309F5C
split-complementary
#303C9F #9F5C30 #739F30
monochromatic
#141941 #222A70 #303C9F #4553C7 #747FD5

Accessibility & contrast

On white

9.24
#303C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#303C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C9F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C9F#FFFFFF#000000##FFFFFF
##303C9F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303c9f;
/* rgb */ color: rgb(48, 60, 159);
/* oklch */ color: oklch(41.1% 0.159 272.0);
Tailwind
colors: {
  custom: {
    50: '#7771bc',
    500: '#303c9f',
    950: '#000000',
  },
}
SCSS
$custom: #303c9f;
$custom-light: #7771bc;
$custom-dark: #000000;
JSON
{
  "hex": "#303c9f",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 159
  },
  "hsl": {
    "h": 233.514,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41074,
    "c": 0.15943,
    "h": 272
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#303C9F
secondary
#BDB46E
accent
#CD4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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