#303B78#303B78

#303B78 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.7% C 0.104 H 272.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#303B78
RGBrgb(48, 59, 120)
HSLhsl(231, 43%, 33%)
HSVhsv(231, 60%, 47%)
CMYKcmyk(60%, 50.8%, 0%, 52.9%)
CIE-LABlab(27.05, 15.40, -36.40)
CIE-LCHlch(27.05, 39.53, 292.94°)
OKLaboklab(37.69% 0.005 -0.104)
OKLCHoklch(37.69% 0.104 272.8)
XYZxyz(6.1719, 5.1119, 18.4271)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303B78 #786D30
analogous
#305F78 #303B78 #493078
triadic
#303B78 #78303B #3B7830
tetradic
#303B78 #78305F #786D30 #307849
square
#303B78 #78305F #786D30 #307849
split-complementary
#303B78 #784930 #5F7830
monochromatic
#0D1021 #1F264C #303B78 #4150A4 #6271C0

Accessibility & contrast

On white

10.38
#303B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#303B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303B78
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303B78#FFFFFF#000000##FFFFFF
##303B781.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D437A
Deuteranopia (green-blind)
#113D77
Tritanopia (blue-blind)
#014953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #303b78;
/* rgb */ color: rgb(48, 59, 120);
/* oklch */ color: oklch(37.7% 0.104 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f709f',
    500: '#303b78',
    950: '#000000',
  },
}
SCSS
$custom: #303b78;
$custom-light: #6f709f;
$custom-dark: #000000;
JSON
{
  "hex": "#303b78",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 120
  },
  "hsl": {
    "h": 230.833,
    "s": 42.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37694,
    "c": 0.10409,
    "h": 272.8
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#303B78
secondary
#A79C5C
accent
#BF55D3
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #303B78

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

Preview Lab → · Contrast checker → · Palette generator →

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