#303988#303988

#303988 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.131 H 273.7°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#303988
RGBrgb(48, 57, 136)
HSLhsl(234, 48%, 36%)
HSVhsv(234, 65%, 53%)
CMYKcmyk(64.7%, 58.1%, 0%, 46.7%)
CIE-LABlab(27.66, 22.63, -45.44)
CIE-LCHlch(27.66, 50.76, 296.48°)
OKLaboklab(38.52% 0.0083 -0.1306)
OKLCHoklch(38.52% 0.131 273.7)
XYZxyz(7.1245, 5.3316, 23.9414)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303988 #887F30
analogous
#306588 #303988 #533088
triadic
#303988 #883039 #398830
tetradic
#303988 #883065 #887F30 #308853
square
#303988 #883065 #887F30 #308853
split-complementary
#303988 #885330 #658830
monochromatic
#10132E #20265B #303988 #404CB5 #6972CA

Accessibility & contrast

On white

10.16
#303988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#303988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303988
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303988#FFFFFF#000000##FFFFFF
##3039881.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303988;
/* rgb */ color: rgb(48, 57, 136);
/* oklch */ color: oklch(38.5% 0.131 273.7);
Tailwind
colors: {
  custom: {
    50: '#726fab',
    500: '#303988',
    950: '#000000',
  },
}
SCSS
$custom: #303988;
$custom-light: #726fab;
$custom-dark: #000000;
JSON
{
  "hex": "#303988",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 136
  },
  "hsl": {
    "h": 233.864,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38523,
    "c": 0.13086,
    "h": 273.7
  },
  "luminance": 0.05332
}

Semantic roles & 50–950 ramp

primary
#303988
secondary
#B1A963
accent
#CA50D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303988

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

Preview Lab → · Contrast checker → · Palette generator →

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