#303E8D#303E8D

#303E8D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.131 H 271.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#303E8D
RGBrgb(48, 62, 141)
HSLhsl(231, 49%, 37%)
HSVhsv(231, 66%, 55%)
CMYKcmyk(66%, 56%, 0%, 44.7%)
CIE-LABlab(29.40, 21.09, -45.71)
CIE-LCHlch(29.40, 50.34, 294.77°)
OKLaboklab(39.95% 0.0036 -0.1313)
OKLCHoklch(39.95% 0.131 271.6)
XYZxyz(7.7477, 5.9960, 25.9432)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E8D #8D7F30
analogous
#306D8D #303E8D #51308D
triadic
#303E8D #8D303E #3E8D30
tetradic
#303E8D #8D306D #8D7F30 #308D51
square
#303E8D #8D306D #8D7F30 #308D51
split-complementary
#303E8D #8D5130 #6D8D30
monochromatic
#111632 #202A5F #303E8D #4052BB #6B7ACD

Accessibility & contrast

On white

9.55
#303E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#303E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E8D
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E8D#FFFFFF#000000##FFFFFF
##303E8D1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303e8d;
/* rgb */ color: rgb(48, 62, 141);
/* oklch */ color: oklch(39.9% 0.131 271.6);
Tailwind
colors: {
  custom: {
    50: '#7373af',
    500: '#303e8d',
    950: '#000000',
  },
}
SCSS
$custom: #303e8d;
$custom-light: #7373af;
$custom-dark: #000000;
JSON
{
  "hex": "#303e8d",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 141
  },
  "hsl": {
    "h": 230.968,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39948,
    "c": 0.13137,
    "h": 271.6
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#303E8D
secondary
#B4A865
accent
#C44FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #303E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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