#302F82#302F82

#302F82 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.136 H 277.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#302F82
RGBrgb(48, 47, 130)
HSLhsl(241, 47%, 35%)
HSVhsv(241, 64%, 51%)
CMYKcmyk(63.1%, 63.8%, 0%, 49%)
CIE-LABlab(24.55, 27.16, -46.74)
CIE-LCHlch(24.55, 54.06, 300.16°)
OKLaboklab(36.07% 0.0181 -0.1345)
OKLCHoklch(36.07% 0.136 277.7)
XYZxyz(6.2634, 4.2726, 21.6094)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F82 #81822F
analogous
#2F5882 #302F82 #5A2F82
triadic
#302F82 #82302F #2F8230
tetradic
#302F82 #822F58 #81822F #2F825A
square
#302F82 #822F58 #81822F #2F825A
split-complementary
#302F82 #825A2F #58822F
monochromatic
#0F0E28 #1F1F55 #302F82 #413FAF #6664C7

Accessibility & contrast

On white

11.32
#302F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#302F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F82
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F82#FFFFFF#000000##FFFFFF
##302F821.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302f82;
/* rgb */ color: rgb(48, 47, 130);
/* oklch */ color: oklch(36.1% 0.136 277.7);
Tailwind
colors: {
  custom: {
    50: '#7267a7',
    500: '#302f82',
    950: '#000000',
  },
}
SCSS
$custom: #302f82;
$custom-light: #7267a7;
$custom-dark: #000000;
JSON
{
  "hex": "#302f82",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 240.723,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36071,
    "c": 0.13572,
    "h": 277.7
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#302F82
secondary
#ADAE5F
accent
#D751D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #302F82

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

Preview Lab → · Contrast checker → · Palette generator →

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