#303397#303397

#303397 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.160 H 274.7°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#303397
RGBrgb(48, 51, 151)
HSLhsl(238, 52%, 39%)
HSVhsv(238, 68%, 59%)
CMYKcmyk(68.2%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.38, 32.02, -55.15)
CIE-LCHlch(27.38, 63.77, 300.14°)
OKLaboklab(38.71% 0.0131 -0.1592)
OKLCHoklch(38.71% 0.16 274.7)
XYZxyz(7.9868, 5.2297, 29.8607)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303397 #979430
analogous
#306797 #303397 #613097
triadic
#303397 #973033 #339730
tetradic
#303397 #973067 #979430 #309761
square
#303397 #973067 #979430 #309761
split-complementary
#303397 #976130 #679730
monochromatic
#12143A #212369 #303397 #4145C3 #7073D2

Accessibility & contrast

On white

10.26
#303397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#303397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303397
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303397#FFFFFF#000000##FFFFFF
##3033971.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303397;
/* rgb */ color: rgb(48, 51, 151);
/* oklch */ color: oklch(38.7% 0.160 274.7);
Tailwind
colors: {
  custom: {
    50: '#766bb6',
    500: '#303397',
    950: '#000000',
  },
}
SCSS
$custom: #303397;
$custom-light: #766bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#303397",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 238.252,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38708,
    "c": 0.15969,
    "h": 274.7
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#303397
secondary
#B9B76A
accent
#D74DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #303397

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

Preview Lab → · Contrast checker → · Palette generator →

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