#303997#303997

#303997 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.152 H 273.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#303997
RGBrgb(48, 57, 151)
HSLhsl(235, 52%, 39%)
HSVhsv(235, 68%, 59%)
CMYKcmyk(68.2%, 62.3%, 0%, 40.8%)
CIE-LABlab(28.87, 28.11, -52.71)
CIE-LCHlch(28.87, 59.74, 298.07°)
OKLaboklab(39.8% 0.0083 -0.1519)
OKLCHoklch(39.8% 0.152 273.1)
XYZxyz(8.2661, 5.7882, 29.9538)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303997 #978E30
analogous
#306D97 #303997 #5B3097
triadic
#303997 #973039 #399730
tetradic
#303997 #97306D #978E30 #30975B
square
#303997 #97306D #978E30 #30975B
split-complementary
#303997 #975B30 #6D9730
monochromatic
#12163A #212769 #303997 #414DC3 #7078D2

Accessibility & contrast

On white

9.73
#303997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#303997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303997
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303997#FFFFFF#000000##FFFFFF
##3039971.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303997;
/* rgb */ color: rgb(48, 57, 151);
/* oklch */ color: oklch(39.8% 0.152 273.1);
Tailwind
colors: {
  custom: {
    50: '#766fb6',
    500: '#303997',
    950: '#000000',
  },
}
SCSS
$custom: #303997;
$custom-light: #766fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#303997",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 234.757,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39803,
    "c": 0.15218,
    "h": 273.1
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#303997
secondary
#B9B26A
accent
#CF4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303997

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

Preview Lab → · Contrast checker → · Palette generator →

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