#303D94#303D94

#303D94 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.143 H 271.9°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#303D94
RGBrgb(48, 61, 148)
HSLhsl(232, 51%, 38%)
HSVhsv(232, 68%, 58%)
CMYKcmyk(67.6%, 58.8%, 0%, 42%)
CIE-LABlab(29.67, 24.35, -49.57)
CIE-LCHlch(29.67, 55.23, 296.16°)
OKLaboklab(40.32% 0.0048 -0.1427)
OKLCHoklch(40.32% 0.143 271.9)
XYZxyz(8.2312, 6.1032, 28.7555)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D94 #948730
analogous
#306F94 #303D94 #553094
triadic
#303D94 #94303D #3D9430
tetradic
#303D94 #94306F #948730 #309455
square
#303D94 #94306F #948730 #309455
split-complementary
#303D94 #945530 #6F9430
monochromatic
#121738 #212A66 #303D94 #4051C1 #6E7BD0

Accessibility & contrast

On white

9.46
#303D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#303D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D94
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D94#FFFFFF#000000##FFFFFF
##303D941.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #303d94;
/* rgb */ color: rgb(48, 61, 148);
/* oklch */ color: oklch(40.3% 0.143 271.9);
Tailwind
colors: {
  custom: {
    50: '#7572b4',
    500: '#303d94',
    950: '#000000',
  },
}
SCSS
$custom: #303d94;
$custom-light: #7572b4;
$custom-dark: #000000;
JSON
{
  "hex": "#303d94",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 148
  },
  "hsl": {
    "h": 232.2,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4032,
    "c": 0.14277,
    "h": 271.9
  },
  "luminance": 0.06104
}

Semantic roles & 50–950 ramp

primary
#303D94
secondary
#B8AD68
accent
#C84DDA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #303D94

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

Preview Lab → · Contrast checker → · Palette generator →

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