#302F79#302F79

#302F79 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.123 H 278.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#302F79
RGBrgb(48, 47, 121)
HSLhsl(241, 44%, 33%)
HSVhsv(241, 61%, 47%)
CMYKcmyk(60.3%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.81, 23.96, -42.27)
CIE-LCHlch(23.81, 48.59, 299.54°)
OKLaboklab(35.29% 0.0185 -0.1214)
OKLCHoklch(35.29% 0.123 278.7)
XYZxyz(5.6855, 4.0415, 18.5659)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F79 #78792F
analogous
#2F5379 #302F79 #552F79
triadic
#302F79 #79302F #2F7930
tetradic
#302F79 #792F53 #78792F #2F7955
square
#302F79 #792F53 #78792F #2F7955
split-complementary
#302F79 #79552F #53792F
monochromatic
#0D0D21 #1F1E4D #302F79 #4140A5 #6261C2

Accessibility & contrast

On white

11.61
#302F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F79
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F79#FFFFFF#000000##FFFFFF
##302F791.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#02414F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302f79;
/* rgb */ color: rgb(48, 47, 121);
/* oklch */ color: oklch(35.3% 0.123 278.7);
Tailwind
colors: {
  custom: {
    50: '#7067a0',
    500: '#302f79',
    950: '#000000',
  },
}
SCSS
$custom: #302f79;
$custom-light: #7067a0;
$custom-dark: #000000;
JSON
{
  "hex": "#302f79",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 240.811,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35289,
    "c": 0.12276,
    "h": 278.7
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#302F79
secondary
#A7A85B
accent
#D454D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #302F79

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

Preview Lab → · Contrast checker → · Palette generator →

#302F79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva