#303897#303897

#303897 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.153 H 273.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#303897
RGBrgb(48, 56, 151)
HSLhsl(235, 52%, 39%)
HSVhsv(235, 68%, 59%)
CMYKcmyk(68.2%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.62, 28.77, -53.13)
CIE-LCHlch(28.62, 60.42, 298.44°)
OKLaboklab(39.62% 0.0091 -0.1532)
OKLCHoklch(39.62% 0.153 273.4)
XYZxyz(8.2171, 5.6903, 29.9375)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303897 #978F30
analogous
#306C97 #303897 #5C3097
triadic
#303897 #973038 #389730
tetradic
#303897 #97306C #978F30 #30975C
square
#303897 #97306C #978F30 #30975C
split-complementary
#303897 #975C30 #6C9730
monochromatic
#12163A #212769 #303897 #414BC3 #7077D2

Accessibility & contrast

On white

9.82
#303897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#303897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303897
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303897#FFFFFF#000000##FFFFFF
##3038971.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303897;
/* rgb */ color: rgb(48, 56, 151);
/* oklch */ color: oklch(39.6% 0.153 273.4);
Tailwind
colors: {
  custom: {
    50: '#766eb6',
    500: '#303897',
    950: '#000000',
  },
}
SCSS
$custom: #303897;
$custom-light: #766eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#303897",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 235.34,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39616,
    "c": 0.15345,
    "h": 273.4
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#303897
secondary
#B9B36A
accent
#D04DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303897

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

Preview Lab → · Contrast checker → · Palette generator →

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