#303F97#303F97

#303F97 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.144 H 271.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#303F97
RGBrgb(48, 63, 151)
HSLhsl(231, 52%, 39%)
HSVhsv(231, 68%, 59%)
CMYKcmyk(68.2%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.44, 24.12, -50.16)
CIE-LCHlch(30.44, 55.66, 295.69°)
OKLaboklab(40.97% 0.0031 -0.1444)
OKLCHoklch(40.97% 0.144 271.2)
XYZxyz(8.5805, 6.4170, 30.0586)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303F97 #978830
analogous
#307397 #303F97 #553097
triadic
#303F97 #97303F #3F9730
tetradic
#303F97 #973073 #978830 #309755
square
#303F97 #973073 #978830 #309755
split-complementary
#303F97 #975530 #739730
monochromatic
#12183A #212C69 #303F97 #4154C3 #707ED2

Accessibility & contrast

On white

9.20
#303F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#303F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303F97
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303F97#FFFFFF#000000##FFFFFF
##303F971.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303f97;
/* rgb */ color: rgb(48, 63, 151);
/* oklch */ color: oklch(41.0% 0.144 271.2);
Tailwind
colors: {
  custom: {
    50: '#7573b6',
    500: '#303f97',
    950: '#000000',
  },
}
SCSS
$custom: #303f97;
$custom-light: #7573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303f97",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 231.262,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40968,
    "c": 0.14441,
    "h": 271.2
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#303F97
secondary
#B9AE6A
accent
#C64DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #303F97

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

Preview Lab → · Contrast checker → · Palette generator →

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