#302D79#302D79

#302D79 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.126 H 279.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#302D79
RGBrgb(48, 45, 121)
HSLhsl(242, 46%, 33%)
HSVhsv(242, 63%, 47%)
CMYKcmyk(60.3%, 62.8%, 0%, 52.5%)
CIE-LABlab(23.29, 25.30, -43.11)
CIE-LCHlch(23.29, 49.99, 300.40°)
OKLaboklab(34.91% 0.0206 -0.1239)
OKLCHoklch(34.91% 0.126 279.4)
XYZxyz(5.6074, 3.8852, 18.5399)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D79 #76792D
analogous
#2D5079 #302D79 #562D79
triadic
#302D79 #79302D #2D7930
tetradic
#302D79 #792D50 #76792D #2D7956
square
#302D79 #792D50 #76792D #2D7956
split-complementary
#302D79 #79562D #50792D
monochromatic
#0D0C20 #1E1C4C #302D79 #423EA6 #615DC3

Accessibility & contrast

On white

11.82
#302D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D79
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D79#FFFFFF#000000##FFFFFF
##302D791.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#033F4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302d79;
/* rgb */ color: rgb(48, 45, 121);
/* oklch */ color: oklch(34.9% 0.126 279.4);
Tailwind
colors: {
  custom: {
    50: '#7066a0',
    500: '#302d79',
    950: '#000000',
  },
}
SCSS
$custom: #302d79;
$custom-light: #7066a0;
$custom-dark: #000000;
JSON
{
  "hex": "#302d79",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 242.368,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34905,
    "c": 0.12556,
    "h": 279.4
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#302D79
secondary
#A6A958
accent
#D552D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #302D79

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

Preview Lab → · Contrast checker → · Palette generator →

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