#302DAB#302DAB

#302DAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.192 H 274.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#302DAB
RGBrgb(48, 45, 171)
HSLhsl(241, 58%, 42%)
HSVhsv(241, 74%, 67%)
CMYKcmyk(71.9%, 73.7%, 0%, 32.9%)
CIE-LABlab(27.97, 42.58, -66.32)
CIE-LCHlch(27.97, 78.81, 302.70°)
OKLaboklab(39.72% 0.0143 -0.1918)
OKLCHoklch(39.72% 0.192 274.3)
XYZxyz(9.5056, 5.4445, 39.0701)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DAB #A8AB2D
analogous
#2D69AB #302DAB #6F2DAB
triadic
#302DAB #AB302D #2DAB30
tetradic
#302DAB #AB2D69 #A8AB2D #2DAB6F
square
#302DAB #AB2D69 #A8AB2D #2DAB6F
split-complementary
#302DAB #AB6F2D #69AB2D
monochromatic
#15144A #22207B #302DAB #4A47CE #7A77DB

Accessibility & contrast

On white

10.05
#302DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#302DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DAB
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DAB#FFFFFF#000000##FFFFFF
##302DAB1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302dab;
/* rgb */ color: rgb(48, 45, 171);
/* oklch */ color: oklch(39.7% 0.192 274.3);
Tailwind
colors: {
  custom: {
    50: '#7b67c5',
    500: '#302dab',
    950: '#000000',
  },
}
SCSS
$custom: #302dab;
$custom-light: #7b67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#302dab",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 241.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39715,
    "c": 0.19232,
    "h": 274.3
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#302DAB
secondary
#C1C371
accent
#E246DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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