#303A97#303A97

#303A97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.151 H 272.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#303A97
RGBrgb(48, 58, 151)
HSLhsl(234, 52%, 39%)
HSVhsv(234, 68%, 59%)
CMYKcmyk(68.2%, 61.6%, 0%, 40.8%)
CIE-LABlab(29.13, 27.45, -52.29)
CIE-LCHlch(29.13, 59.06, 297.70°)
OKLaboklab(39.99% 0.0074 -0.1507)
OKLCHoklch(39.99% 0.151 272.8)
XYZxyz(8.3160, 5.8881, 29.9704)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A97 #978D30
analogous
#306E97 #303A97 #5A3097
triadic
#303A97 #97303A #3A9730
tetradic
#303A97 #97306E #978D30 #30975A
square
#303A97 #97306E #978D30 #30975A
split-complementary
#303A97 #975A30 #6E9730
monochromatic
#12163A #212869 #303A97 #414EC3 #7079D2

Accessibility & contrast

On white

9.64
#303A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#303A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303A97
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A97#FFFFFF#000000##FFFFFF
##303A971.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303a97;
/* rgb */ color: rgb(48, 58, 151);
/* oklch */ color: oklch(40.0% 0.151 272.8);
Tailwind
colors: {
  custom: {
    50: '#7670b6',
    500: '#303a97',
    950: '#000000',
  },
}
SCSS
$custom: #303a97;
$custom-light: #7670b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303a97",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 234.175,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39993,
    "c": 0.1509,
    "h": 272.8
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#303A97
secondary
#B9B16A
accent
#CD4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303A97

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

Preview Lab → · Contrast checker → · Palette generator →

#303A97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva