#303E81#303E81

#303E81 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.114 H 271.3°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#303E81
RGBrgb(48, 62, 129)
HSLhsl(230, 46%, 35%)
HSVhsv(230, 63%, 51%)
CMYKcmyk(62.8%, 51.9%, 0%, 49.4%)
CIE-LABlab(28.53, 16.66, -39.67)
CIE-LCHlch(28.53, 43.03, 292.78°)
OKLaboklab(39.02% 0.0027 -0.1135)
OKLCHoklch(39.02% 0.114 271.3)
XYZxyz(6.9027, 5.6580, 21.4930)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E81 #817330
analogous
#306681 #303E81 #4B3081
triadic
#303E81 #81303E #3E8130
tetradic
#303E81 #813066 #817330 #30814B
square
#303E81 #813066 #817330 #30814B
split-complementary
#303E81 #814B30 #668130
monochromatic
#0F1328 #1F2954 #303E81 #4153AE #6676C6

Accessibility & contrast

On white

9.85
#303E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#303E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E81
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E81#FFFFFF#000000##FFFFFF
##303E811.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4783
Deuteranopia (green-blind)
#074080
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303e81;
/* rgb */ color: rgb(48, 62, 129);
/* oklch */ color: oklch(39.0% 0.114 271.3);
Tailwind
colors: {
  custom: {
    50: '#7173a6',
    500: '#303e81',
    950: '#000000',
  },
}
SCSS
$custom: #303e81;
$custom-light: #7173a6;
$custom-dark: #000000;
JSON
{
  "hex": "#303e81",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 129
  },
  "hsl": {
    "h": 229.63,
    "s": 45.763,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39016,
    "c": 0.11358,
    "h": 271.3
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#303E81
secondary
#ADA060
accent
#BF52D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #303E81

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

Preview Lab → · Contrast checker → · Palette generator →

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