#302D8C#302D8C

#302D8C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.152 H 277.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#302D8C
RGBrgb(48, 45, 140)
HSLhsl(242, 51%, 36%)
HSVhsv(242, 68%, 55%)
CMYKcmyk(65.7%, 67.9%, 0%, 45.1%)
CIE-LABlab(24.95, 31.98, -52.35)
CIE-LCHlch(24.95, 61.34, 301.42°)
OKLaboklab(36.63% 0.019 -0.151)
OKLCHoklch(36.63% 0.152 277.2)
XYZxyz(6.8894, 4.3980, 25.2917)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D8C #898C2D
analogous
#2D5A8C #302D8C #602D8C
triadic
#302D8C #8C302D #2D8C30
tetradic
#302D8C #8C2D5A #898C2D #2D8C60
square
#302D8C #8C2D5A #898C2D #2D8C60
split-complementary
#302D8C #8C602D #5A8C2D
monochromatic
#100F2F #201E5E #302D8C #403CBA #6966CE

Accessibility & contrast

On white

11.17
#302D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#302D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D8C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D8C#FFFFFF#000000##FFFFFF
##302D8C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302d8c;
/* rgb */ color: rgb(48, 45, 140);
/* oklch */ color: oklch(36.6% 0.152 277.2);
Tailwind
colors: {
  custom: {
    50: '#7466ae',
    500: '#302d8c',
    950: '#000000',
  },
}
SCSS
$custom: #302d8c;
$custom-light: #7466ae;
$custom-dark: #000000;
JSON
{
  "hex": "#302d8c",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 140
  },
  "hsl": {
    "h": 241.895,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36631,
    "c": 0.15215,
    "h": 277.2
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#302D8C
secondary
#B2B460
accent
#DB4DD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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