#302A79#302A79

#302A79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.130 H 280.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#302A79
RGBrgb(48, 42, 121)
HSLhsl(245, 48%, 32%)
HSVhsv(245, 65%, 47%)
CMYKcmyk(60.3%, 65.3%, 0%, 52.5%)
CIE-LABlab(22.53, 27.28, -44.35)
CIE-LCHlch(22.53, 52.07, 301.60°)
OKLaboklab(34.35% 0.0237 -0.1275)
OKLCHoklch(34.35% 0.13 280.5)
XYZxyz(5.4970, 3.6644, 18.5031)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A79 #73792A
analogous
#2A4C79 #302A79 #582A79
triadic
#302A79 #79302A #2A7930
tetradic
#302A79 #792A4C #73792A #2A7958
square
#302A79 #792A4C #73792A #2A7958
split-complementary
#302A79 #79582A #4C792A
monochromatic
#0C0A1E #1E1A4C #302A79 #423AA6 #6158C5

Accessibility & contrast

On white

12.12
#302A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#302A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A79
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A79#FFFFFF#000000##FFFFFF
##302A791.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#043E4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #302a79;
/* rgb */ color: rgb(48, 42, 121);
/* oklch */ color: oklch(34.3% 0.130 280.5);
Tailwind
colors: {
  custom: {
    50: '#7164a0',
    500: '#302a79',
    950: '#000000',
  },
}
SCSS
$custom: #302a79;
$custom-light: #7164a0;
$custom-dark: #000000;
JSON
{
  "hex": "#302a79",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 244.557,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34349,
    "c": 0.12967,
    "h": 280.5
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#302A79
secondary
#A4AB54
accent
#D850CE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #302A79

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

Preview Lab → · Contrast checker → · Palette generator →

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