#303291#303291

#303291 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.153 H 275.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#303291
RGBrgb(48, 50, 145)
HSLhsl(239, 50%, 38%)
HSVhsv(239, 67%, 57%)
CMYKcmyk(66.9%, 65.5%, 0%, 43.1%)
CIE-LABlab(26.60, 30.53, -52.73)
CIE-LCHlch(26.60, 60.94, 300.07°)
OKLaboklab(37.97% 0.0144 -0.1521)
OKLCHoklch(37.97% 0.153 275.4)
XYZxyz(7.4687, 4.9533, 27.3451)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303291 #918F30
analogous
#306291 #303291 #5E3091
triadic
#303291 #913032 #329130
tetradic
#303291 #913062 #918F30 #30915E
square
#303291 #913062 #918F30 #30915E
split-complementary
#303291 #915E30 #629130
monochromatic
#121235 #212263 #303291 #3F42BF #6D6FCF

Accessibility & contrast

On white

10.55
#303291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#303291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303291
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303291#FFFFFF#000000##FFFFFF
##3032911.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303291;
/* rgb */ color: rgb(48, 50, 145);
/* oklch */ color: oklch(38.0% 0.153 275.4);
Tailwind
colors: {
  custom: {
    50: '#756ab2',
    500: '#303291',
    950: '#000000',
  },
}
SCSS
$custom: #303291;
$custom-light: #756ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#303291",
  "rgb": {
    "r": 48,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 238.763,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37975,
    "c": 0.15275,
    "h": 275.4
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303291

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

Preview Lab → · Contrast checker → · Palette generator →

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