#303D9F#303D9F

#303D9F is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.158 H 271.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#303D9F
RGBrgb(48, 61, 159)
HSLhsl(233, 54%, 41%)
HSVhsv(233, 70%, 62%)
CMYKcmyk(69.8%, 61.6%, 0%, 37.6%)
CIE-LABlab(30.56, 28.39, -54.82)
CIE-LCHlch(30.56, 61.73, 297.38°)
OKLaboklab(41.26% 0.0048 -0.1581)
OKLCHoklch(41.26% 0.158 271.7)
XYZxyz(9.1436, 6.4682, 33.5608)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D9F #9F9230
analogous
#30749F #303D9F #5A309F
triadic
#303D9F #9F303D #3D9F30
tetradic
#303D9F #9F3074 #9F9230 #309F5A
square
#303D9F #9F3074 #9F9230 #309F5A
split-complementary
#303D9F #9F5A30 #749F30
monochromatic
#141941 #222B70 #303D9F #4554C7 #7480D5

Accessibility & contrast

On white

9.16
#303D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#303D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D9F
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D9F#FFFFFF#000000##FFFFFF
##303D9F1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303d9f;
/* rgb */ color: rgb(48, 61, 159);
/* oklch */ color: oklch(41.3% 0.158 271.7);
Tailwind
colors: {
  custom: {
    50: '#7772bc',
    500: '#303d9f',
    950: '#000000',
  },
}
SCSS
$custom: #303d9f;
$custom-light: #7772bc;
$custom-dark: #000000;
JSON
{
  "hex": "#303d9f",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 159
  },
  "hsl": {
    "h": 232.973,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41262,
    "c": 0.15817,
    "h": 271.7
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#303D9F
secondary
#BDB46E
accent
#CC4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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