#302A7D#302A7D

#302A7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.135 H 279.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#302A7D
RGBrgb(48, 42, 125)
HSLhsl(244, 50%, 33%)
HSVhsv(244, 66%, 49%)
CMYKcmyk(61.6%, 66.4%, 0%, 51%)
CIE-LABlab(22.88, 28.68, -46.32)
CIE-LCHlch(22.88, 54.48, 301.76°)
OKLaboklab(34.71% 0.0233 -0.1333)
OKLCHoklch(34.71% 0.135 279.9)
XYZxyz(5.7474, 3.7646, 19.8218)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A7D #777D2A
analogous
#2A4E7D #302A7D #592A7D
triadic
#302A7D #7D302A #2A7D30
tetradic
#302A7D #7D2A4E #777D2A #2A7D59
square
#302A7D #7D2A4E #777D2A #2A7D59
split-complementary
#302A7D #7D592A #4E7D2A
monochromatic
#0D0B21 #1E1B4F #302A7D #4239AB #625AC8

Accessibility & contrast

On white

11.98
#302A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#302A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A7D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A7D#FFFFFF#000000##FFFFFF
##302A7D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302a7d;
/* rgb */ color: rgb(48, 42, 125);
/* oklch */ color: oklch(34.7% 0.135 279.9);
Tailwind
colors: {
  custom: {
    50: '#7164a3',
    500: '#302a7d',
    950: '#000000',
  },
}
SCSS
$custom: #302a7d;
$custom-light: #7164a3;
$custom-dark: #000000;
JSON
{
  "hex": "#302a7d",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 244.337,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.13531,
    "h": 279.9
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#302A7D
secondary
#A7AD56
accent
#D94FCF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #302A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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