#303196#303196

#303196 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.161 H 275.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#303196
RGBrgb(48, 49, 150)
HSLhsl(239, 52%, 39%)
HSVhsv(239, 68%, 59%)
CMYKcmyk(68%, 67.3%, 0%, 41.2%)
CIE-LABlab(26.81, 32.95, -55.47)
CIE-LCHlch(26.81, 64.51, 300.71°)
OKLaboklab(38.27% 0.0148 -0.1601)
OKLCHoklch(38.27% 0.161 275.3)
XYZxyz(7.8204, 5.0263, 29.4063)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303196 #969530
analogous
#306496 #303196 #623096
triadic
#303196 #963031 #319630
tetradic
#303196 #963064 #969530 #309662
square
#303196 #963064 #969530 #309662
split-complementary
#303196 #966230 #649630
monochromatic
#121339 #212268 #303196 #4142C2 #6F70D1

Accessibility & contrast

On white

10.47
#303196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303196
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303196#FFFFFF#000000##FFFFFF
##3031961.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #303196;
/* rgb */ color: rgb(48, 49, 150);
/* oklch */ color: oklch(38.3% 0.161 275.3);
Tailwind
colors: {
  custom: {
    50: '#7669b6',
    500: '#303196',
    950: '#000000',
  },
}
SCSS
$custom: #303196;
$custom-light: #7669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303196",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 239.412,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38266,
    "c": 0.16077,
    "h": 275.3
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#303196
secondary
#B9B869
accent
#DA4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #303196

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

Preview Lab → · Contrast checker → · Palette generator →

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