#303197#303197

#303197 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.162 H 275.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#303197
RGBrgb(48, 49, 151)
HSLhsl(239, 52%, 39%)
HSVhsv(239, 68%, 59%)
CMYKcmyk(68.2%, 67.5%, 0%, 40.8%)
CIE-LABlab(26.90, 33.30, -55.93)
CIE-LCHlch(26.90, 65.09, 300.77°)
OKLaboklab(38.36% 0.0147 -0.1614)
OKLCHoklch(38.36% 0.162 275.2)
XYZxyz(7.9013, 5.0587, 29.8322)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303197 #979630
analogous
#306597 #303197 #633097
triadic
#303197 #973031 #319730
tetradic
#303197 #973065 #979630 #309763
square
#303197 #973065 #979630 #309763
split-complementary
#303197 #976330 #659730
monochromatic
#12133A #212269 #303197 #4143C3 #7071D2

Accessibility & contrast

On white

10.44
#303197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303197
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303197#FFFFFF#000000##FFFFFF
##3031971.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #303197;
/* rgb */ color: rgb(48, 49, 151);
/* oklch */ color: oklch(38.4% 0.162 275.2);
Tailwind
colors: {
  custom: {
    50: '#7669b7',
    500: '#303197',
    950: '#000000',
  },
}
SCSS
$custom: #303197;
$custom-light: #7669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#303197",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 239.417,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38361,
    "c": 0.16211,
    "h": 275.2
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303197

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

Preview Lab → · Contrast checker → · Palette generator →

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