#303178#303178

#303178 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.6% C 0.118 H 277.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#303178
RGBrgb(48, 49, 120)
HSLhsl(239, 43%, 33%)
HSVhsv(239, 60%, 47%)
CMYKcmyk(60%, 59.2%, 0%, 52.9%)
CIE-LABlab(24.26, 22.25, -40.90)
CIE-LCHlch(24.26, 46.56, 298.54°)
OKLaboklab(35.6% 0.0163 -0.1173)
OKLCHoklch(35.6% 0.118 277.9)
XYZxyz(5.7063, 4.1807, 18.2719)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303178 #787730
analogous
#305578 #303178 #533078
triadic
#303178 #783031 #317830
tetradic
#303178 #783055 #787730 #307853
square
#303178 #783055 #787730 #307853
split-complementary
#303178 #785330 #557830
monochromatic
#0D0D21 #1F1F4C #303178 #4143A4 #6263C0

Accessibility & contrast

On white

11.44
#303178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#303178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303178
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303178#FFFFFF#000000##FFFFFF
##3031781.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#04424F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #303178;
/* rgb */ color: rgb(48, 49, 120);
/* oklch */ color: oklch(35.6% 0.118 277.9);
Tailwind
colors: {
  custom: {
    50: '#7069a0',
    500: '#303178',
    950: '#000000',
  },
}
SCSS
$custom: #303178;
$custom-light: #7069a0;
$custom-dark: #000000;
JSON
{
  "hex": "#303178",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 239.167,
    "s": 42.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35599,
    "c": 0.11845,
    "h": 277.9
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#303178
secondary
#A7A65C
accent
#D155D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #303178

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

Preview Lab → · Contrast checker → · Palette generator →

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