#303391#303391

#303391 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.151 H 275.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#303391
RGBrgb(48, 51, 145)
HSLhsl(238, 50%, 38%)
HSVhsv(238, 67%, 57%)
CMYKcmyk(66.9%, 64.8%, 0%, 43.1%)
CIE-LABlab(26.85, 29.88, -52.33)
CIE-LCHlch(26.85, 60.26, 299.73°)
OKLaboklab(38.16% 0.0136 -0.1509)
OKLCHoklch(38.16% 0.152 275.2)
XYZxyz(7.5119, 5.0397, 27.3595)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303391 #918E30
analogous
#306491 #303391 #5D3091
triadic
#303391 #913033 #339130
tetradic
#303391 #913064 #918E30 #30915D
square
#303391 #913064 #918E30 #30915D
split-complementary
#303391 #915D30 #649130
monochromatic
#121335 #212363 #303391 #3F43BF #6D70CF

Accessibility & contrast

On white

10.46
#303391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#303391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303391
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303391#FFFFFF#000000##FFFFFF
##3033911.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #303391;
/* rgb */ color: rgb(48, 51, 145);
/* oklch */ color: oklch(38.2% 0.151 275.2);
Tailwind
colors: {
  custom: {
    50: '#756bb2',
    500: '#303391',
    950: '#000000',
  },
}
SCSS
$custom: #303391;
$custom-light: #756bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#303391",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 238.144,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38155,
    "c": 0.1515,
    "h": 275.2
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#303391
secondary
#B6B467
accent
#D54EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #303391

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

Preview Lab → · Contrast checker → · Palette generator →

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