#303E9D#303E9D

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

Color values

HEX#303E9D
RGBrgb(48, 62, 157)
HSLhsl(232, 53%, 40%)
HSVhsv(232, 69%, 62%)
CMYKcmyk(69.4%, 60.5%, 0%, 38.4%)
CIE-LABlab(30.66, 27.00, -53.45)
CIE-LCHlch(30.66, 59.88, 296.80°)
OKLaboklab(41.28% 0.004 -0.1541)
OKLCHoklch(41.28% 0.154 271.5)
XYZxyz(9.0253, 6.5071, 32.6721)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E9D #9D8F30
analogous
#30749D #303E9D #59309D
triadic
#303E9D #9D303E #3E9D30
tetradic
#303E9D #9D3074 #9D8F30 #309D59
square
#303E9D #9D3074 #9D8F30 #309D59
split-complementary
#303E9D #9D5930 #749D30
monochromatic
#13193F #222B6E #303E9D #4455C6 #7380D4

Accessibility & contrast

On white

9.12
#303E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303E9D
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E9D#FFFFFF#000000##FFFFFF
##303E9D1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303e9d;
/* rgb */ color: rgb(48, 62, 157);
/* oklch */ color: oklch(41.3% 0.154 271.5);
Tailwind
colors: {
  custom: {
    50: '#7773bb',
    500: '#303e9d',
    950: '#000000',
  },
}
SCSS
$custom: #303e9d;
$custom-light: #7773bb;
$custom-dark: #000000;
JSON
{
  "hex": "#303e9d",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 157
  },
  "hsl": {
    "h": 232.294,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4128,
    "c": 0.15414,
    "h": 271.5
  },
  "luminance": 0.06508
}

Semantic roles & 50–950 ramp

primary
#303E9D
secondary
#BCB26D
accent
#CA4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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