#302D81#302D81

#302D81 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.137 H 278.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#302D81
RGBrgb(48, 45, 129)
HSLhsl(242, 48%, 34%)
HSVhsv(242, 65%, 51%)
CMYKcmyk(62.8%, 65.1%, 0%, 49.4%)
CIE-LABlab(23.97, 28.12, -47.07)
CIE-LCHlch(23.97, 54.83, 300.86°)
OKLaboklab(35.61% 0.0201 -0.1355)
OKLCHoklch(35.61% 0.137 278.4)
XYZxyz(6.1185, 4.0897, 21.2316)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D81 #7E812D
analogous
#2D5481 #302D81 #5A2D81
triadic
#302D81 #81302D #2D8130
tetradic
#302D81 #812D54 #7E812D #2D815A
square
#302D81 #812D54 #7E812D #2D815A
split-complementary
#302D81 #815A2D #54812D
monochromatic
#0E0D26 #1F1D54 #302D81 #413DAE #6461C8

Accessibility & contrast

On white

11.55
#302D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302D81
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D81#FFFFFF#000000##FFFFFF
##302D811.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302d81;
/* rgb */ color: rgb(48, 45, 129);
/* oklch */ color: oklch(35.6% 0.137 278.4);
Tailwind
colors: {
  custom: {
    50: '#7266a6',
    500: '#302d81',
    950: '#000000',
  },
}
SCSS
$custom: #302d81;
$custom-light: #7266a6;
$custom-dark: #000000;
JSON
{
  "hex": "#302d81",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 242.143,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35614,
    "c": 0.13696,
    "h": 278.4
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302D81

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

Preview Lab → · Contrast checker → · Palette generator →

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