#303E9B#303E9B

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

Color values

HEX#303E9B
RGBrgb(48, 62, 155)
HSLhsl(232, 53%, 40%)
HSVhsv(232, 69%, 61%)
CMYKcmyk(69%, 60%, 0%, 39.2%)
CIE-LABlab(30.50, 26.26, -52.50)
CIE-LCHlch(30.50, 58.71, 296.58°)
OKLaboklab(41.11% 0.004 -0.1513)
OKLCHoklch(41.11% 0.151 271.5)
XYZxyz(8.8559, 6.4394, 31.7802)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E9B #9B8D30
analogous
#30739B #303E9B #58309B
triadic
#303E9B #9B303E #3E9B30
tetradic
#303E9B #9B3073 #9B8D30 #309B58
square
#303E9B #9B3073 #9B8D30 #309B58
split-complementary
#303E9B #9B5830 #739B30
monochromatic
#13193E #222B6C #303E9B #4354C5 #727FD3

Accessibility & contrast

On white

9.18
#303E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303E9B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E9B#FFFFFF#000000##FFFFFF
##303E9B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303e9b;
/* rgb */ color: rgb(48, 62, 155);
/* oklch */ color: oklch(41.1% 0.151 271.5);
Tailwind
colors: {
  custom: {
    50: '#7673b9',
    500: '#303e9b',
    950: '#000000',
  },
}
SCSS
$custom: #303e9b;
$custom-light: #7673b9;
$custom-dark: #000000;
JSON
{
  "hex": "#303e9b",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 155
  },
  "hsl": {
    "h": 232.15,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41108,
    "c": 0.15135,
    "h": 271.5
  },
  "luminance": 0.0644
}

Semantic roles & 50–950 ramp

primary
#303E9B
secondary
#BBB16C
accent
#C94CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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