#302F84#302F84

#302F84 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.139 H 277.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#302F84
RGBrgb(48, 47, 132)
HSLhsl(241, 47%, 35%)
HSVhsv(241, 64%, 52%)
CMYKcmyk(63.6%, 64.4%, 0%, 48.2%)
CIE-LABlab(24.72, 27.87, -47.72)
CIE-LCHlch(24.72, 55.26, 300.29°)
OKLaboklab(36.25% 0.018 -0.1374)
OKLCHoklch(36.25% 0.139 277.5)
XYZxyz(6.3990, 4.3269, 22.3233)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F84 #83842F
analogous
#2F5884 #302F84 #5B2F84
triadic
#302F84 #84302F #2F8430
tetradic
#302F84 #842F58 #83842F #2F845B
square
#302F84 #842F58 #83842F #2F845B
split-complementary
#302F84 #845B2F #58842F
monochromatic
#0F0F2A #201F57 #302F84 #403FB1 #6665C8

Accessibility & contrast

On white

11.26
#302F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#302F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F84
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F84#FFFFFF#000000##FFFFFF
##302F841.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302f84;
/* rgb */ color: rgb(48, 47, 132);
/* oklch */ color: oklch(36.3% 0.139 277.5);
Tailwind
colors: {
  custom: {
    50: '#7268a9',
    500: '#302f84',
    950: '#000000',
  },
}
SCSS
$custom: #302f84;
$custom-light: #7268a9;
$custom-dark: #000000;
JSON
{
  "hex": "#302f84",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 240.706,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3625,
    "c": 0.13855,
    "h": 277.5
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#302F84
secondary
#AEAF60
accent
#D751D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302F84

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

Preview Lab → · Contrast checker → · Palette generator →

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