#302D82#302D82

#302D82 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.138 H 278.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#302D82
RGBrgb(48, 45, 130)
HSLhsl(242, 49%, 34%)
HSVhsv(242, 65%, 51%)
CMYKcmyk(63.1%, 65.4%, 0%, 49%)
CIE-LABlab(24.05, 28.47, -47.56)
CIE-LCHlch(24.05, 55.43, 300.91°)
OKLaboklab(35.71% 0.02 -0.1369)
OKLCHoklch(35.71% 0.138 278.3)
XYZxyz(6.1853, 4.1164, 21.5834)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D82 #7F822D
analogous
#2D5582 #302D82 #5B2D82
triadic
#302D82 #82302D #2D8230
tetradic
#302D82 #822D55 #7F822D #2D825B
square
#302D82 #822D55 #7F822D #2D825B
split-complementary
#302D82 #825B2D #55822D
monochromatic
#0E0E27 #1F1D55 #302D82 #413DAF #6561C8

Accessibility & contrast

On white

11.52
#302D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D82
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D82#FFFFFF#000000##FFFFFF
##302D821.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302d82;
/* rgb */ color: rgb(48, 45, 130);
/* oklch */ color: oklch(35.7% 0.138 278.3);
Tailwind
colors: {
  custom: {
    50: '#7266a7',
    500: '#302d82',
    950: '#000000',
  },
}
SCSS
$custom: #302d82;
$custom-light: #7266a7;
$custom-dark: #000000;
JSON
{
  "hex": "#302d82",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 242.118,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.13837,
    "h": 278.3
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#302D82
secondary
#ACAF5C
accent
#D850D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #302D82

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

Preview Lab → · Contrast checker → · Palette generator →

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