#303496#303496

#303496 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.157 H 274.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#303496
RGBrgb(48, 52, 150)
HSLhsl(238, 52%, 39%)
HSVhsv(238, 68%, 59%)
CMYKcmyk(68%, 65.3%, 0%, 41.2%)
CIE-LABlab(27.53, 31.02, -54.28)
CIE-LCHlch(27.53, 62.52, 299.75°)
OKLaboklab(38.79% 0.0124 -0.1566)
OKLCHoklch(38.79% 0.157 274.5)
XYZxyz(7.9501, 5.2857, 29.4495)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303496 #969230
analogous
#306796 #303496 #5F3096
triadic
#303496 #963034 #349630
tetradic
#303496 #963067 #969230 #30965F
square
#303496 #963067 #969230 #30965F
split-complementary
#303496 #965F30 #679630
monochromatic
#121439 #212468 #303496 #4146C2 #6F73D1

Accessibility & contrast

On white

10.21
#303496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303496
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303496#FFFFFF#000000##FFFFFF
##3034961.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303496;
/* rgb */ color: rgb(48, 52, 150);
/* oklch */ color: oklch(38.8% 0.157 274.5);
Tailwind
colors: {
  custom: {
    50: '#766bb6',
    500: '#303496',
    950: '#000000',
  },
}
SCSS
$custom: #303496;
$custom-light: #766bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#303496",
  "rgb": {
    "r": 48,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 237.647,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38793,
    "c": 0.1571,
    "h": 274.5
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#303496
secondary
#B9B569
accent
#D54DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #303496

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

Preview Lab → · Contrast checker → · Palette generator →

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