#302D8D#302D8D

#302D8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.154 H 277.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#302D8D
RGBrgb(48, 45, 141)
HSLhsl(242, 52%, 36%)
HSVhsv(242, 68%, 55%)
CMYKcmyk(66%, 68.1%, 0%, 44.7%)
CIE-LABlab(25.04, 32.33, -52.82)
CIE-LCHlch(25.04, 61.93, 301.47°)
OKLaboklab(36.73% 0.0189 -0.1523)
OKLCHoklch(36.73% 0.154 277.1)
XYZxyz(6.9635, 4.4277, 25.6818)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D8D #8A8D2D
analogous
#2D5A8D #302D8D #602D8D
triadic
#302D8D #8D302D #2D8D30
tetradic
#302D8D #8D2D5A #8A8D2D #2D8D60
square
#302D8D #8D2D5A #8A8D2D #2D8D60
split-complementary
#302D8D #8D602D #5A8D2D
monochromatic
#100F30 #201E5F #302D8D #403CBB #6966CE

Accessibility & contrast

On white

11.14
#302D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#302D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D8D
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D8D#FFFFFF#000000##FFFFFF
##302D8D1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302d8d;
/* rgb */ color: rgb(48, 45, 141);
/* oklch */ color: oklch(36.7% 0.154 277.1);
Tailwind
colors: {
  custom: {
    50: '#7466af',
    500: '#302d8d',
    950: '#000000',
  },
}
SCSS
$custom: #302d8d;
$custom-light: #7466af;
$custom-dark: #000000;
JSON
{
  "hex": "#302d8d",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 241.875,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36726,
    "c": 0.15351,
    "h": 277.1
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#302D8D
secondary
#B2B561
accent
#DB4DD7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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