#303497#303497

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

Color values

HEX#303497
RGBrgb(48, 52, 151)
HSLhsl(238, 52%, 39%)
HSVhsv(238, 68%, 59%)
CMYKcmyk(68.2%, 65.6%, 0%, 40.8%)
CIE-LABlab(27.62, 31.38, -54.75)
CIE-LCHlch(27.62, 63.11, 299.82°)
OKLaboklab(38.89% 0.0123 -0.158)
OKLCHoklch(38.89% 0.158 274.5)
XYZxyz(8.0310, 5.3180, 29.8754)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303497 #979330
analogous
#306897 #303497 #603097
triadic
#303497 #973034 #349730
tetradic
#303497 #973068 #979330 #309760
square
#303497 #973068 #979330 #309760
split-complementary
#303497 #976030 #689730
monochromatic
#12143A #212469 #303497 #4146C3 #7074D2

Accessibility & contrast

On white

10.18
#303497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303497
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303497#FFFFFF#000000##FFFFFF
##3034971.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303497;
/* rgb */ color: rgb(48, 52, 151);
/* oklch */ color: oklch(38.9% 0.158 274.5);
Tailwind
colors: {
  custom: {
    50: '#766bb6',
    500: '#303497',
    950: '#000000',
  },
}
SCSS
$custom: #303497;
$custom-light: #766bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#303497",
  "rgb": {
    "r": 48,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 237.67,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38886,
    "c": 0.15846,
    "h": 274.5
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#303497
secondary
#B9B66A
accent
#D64DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #303497

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

Preview Lab → · Contrast checker → · Palette generator →

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