#303388#303388

#303388 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.139 H 275.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#303388
RGBrgb(48, 51, 136)
HSLhsl(238, 48%, 36%)
HSVhsv(238, 65%, 53%)
CMYKcmyk(64.7%, 62.5%, 0%, 46.7%)
CIE-LABlab(26.08, 26.66, -48.01)
CIE-LCHlch(26.08, 54.91, 299.04°)
OKLaboklab(37.35% 0.0141 -0.1382)
OKLCHoklch(37.35% 0.139 275.8)
XYZxyz(6.8452, 4.7730, 23.8483)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303388 #888530
analogous
#305F88 #303388 #593088
triadic
#303388 #883033 #338830
tetradic
#303388 #88305F #888530 #308859
square
#303388 #88305F #888530 #308859
split-complementary
#303388 #885930 #5F8830
monochromatic
#10112E #20225B #303388 #4044B5 #696CCA

Accessibility & contrast

On white

10.74
#303388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#303388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303388
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303388#FFFFFF#000000##FFFFFF
##3033881.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #303388;
/* rgb */ color: rgb(48, 51, 136);
/* oklch */ color: oklch(37.4% 0.139 275.8);
Tailwind
colors: {
  custom: {
    50: '#736aab',
    500: '#303388',
    950: '#000000',
  },
}
SCSS
$custom: #303388;
$custom-light: #736aab;
$custom-dark: #000000;
JSON
{
  "hex": "#303388",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 136
  },
  "hsl": {
    "h": 237.955,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37351,
    "c": 0.13892,
    "h": 275.8
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#303388
secondary
#B1AE63
accent
#D350D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #303388

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

Preview Lab → · Contrast checker → · Palette generator →

#303388 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva