#303399#303399

#303399 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.162 H 274.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#303399
RGBrgb(48, 51, 153)
HSLhsl(238, 52%, 39%)
HSVhsv(238, 69%, 60%)
CMYKcmyk(68.6%, 66.7%, 0%, 40%)
CIE-LABlab(27.56, 32.73, -56.08)
CIE-LCHlch(27.56, 64.93, 300.27°)
OKLaboklab(38.9% 0.0129 -0.1619)
OKLCHoklch(38.9% 0.162 274.6)
XYZxyz(8.1506, 5.2952, 30.7234)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303399 #999630
analogous
#306899 #303399 #623099
triadic
#303399 #993033 #339930
tetradic
#303399 #993068 #999630 #309962
square
#303399 #993068 #999630 #309962
split-complementary
#303399 #996230 #689930
monochromatic
#13143C #21236A #303399 #4246C4 #7174D2

Accessibility & contrast

On white

10.20
#303399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#303399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303399
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303399#FFFFFF#000000##FFFFFF
##3033991.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303399;
/* rgb */ color: rgb(48, 51, 153);
/* oklch */ color: oklch(38.9% 0.162 274.6);
Tailwind
colors: {
  custom: {
    50: '#776bb8',
    500: '#303399',
    950: '#000000',
  },
}
SCSS
$custom: #303399;
$custom-light: #776bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#303399",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 238.286,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38895,
    "c": 0.16239,
    "h": 274.6
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#303399
secondary
#BAB86B
accent
#D84CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #303399

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

Preview Lab → · Contrast checker → · Palette generator →

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