#303191#303191

#303191 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.154 H 275.7°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#303191
RGBrgb(48, 49, 145)
HSLhsl(239, 50%, 38%)
HSVhsv(239, 67%, 57%)
CMYKcmyk(66.9%, 66.2%, 0%, 43.1%)
CIE-LABlab(26.36, 31.18, -53.13)
CIE-LCHlch(26.36, 61.61, 300.41°)
OKLaboklab(37.8% 0.0153 -0.1532)
OKLCHoklch(37.8% 0.154 275.7)
XYZxyz(7.4264, 4.8687, 27.3310)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303191 #919030
analogous
#306291 #303191 #5F3091
triadic
#303191 #913031 #319130
tetradic
#303191 #913062 #919030 #30915F
square
#303191 #913062 #919030 #30915F
split-complementary
#303191 #915F30 #629130
monochromatic
#121235 #212163 #303191 #3F41BF #6D6ECF

Accessibility & contrast

On white

10.64
#303191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#303191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303191
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303191#FFFFFF#000000##FFFFFF
##3031911.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #303191;
/* rgb */ color: rgb(48, 49, 145);
/* oklch */ color: oklch(37.8% 0.154 275.7);
Tailwind
colors: {
  custom: {
    50: '#7569b2',
    500: '#303191',
    950: '#000000',
  },
}
SCSS
$custom: #303191;
$custom-light: #7569b2;
$custom-dark: #000000;
JSON
{
  "hex": "#303191",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 239.381,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37797,
    "c": 0.15401,
    "h": 275.7
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#303191
secondary
#B6B567
accent
#D84EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #303191

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

Preview Lab → · Contrast checker → · Palette generator →

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