#302AAB#302AAB

#302AAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.195 H 274.6°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#302AAB
RGBrgb(48, 42, 171)
HSLhsl(243, 61%, 42%)
HSVhsv(243, 75%, 67%)
CMYKcmyk(71.9%, 75.4%, 0%, 32.9%)
CIE-LABlab(27.36, 44.28, -67.31)
CIE-LCHlch(27.36, 80.57, 303.34°)
OKLaboklab(39.29% 0.0158 -0.1947)
OKLCHoklch(39.29% 0.195 274.6)
XYZxyz(9.3951, 5.2237, 39.0333)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AAB #A5AB2A
analogous
#2A65AB #302AAB #712AAB
triadic
#302AAB #AB302A #2AAB30
tetradic
#302AAB #AB2A65 #A5AB2A #2AAB71
square
#302AAB #AB2A65 #A5AB2A #2AAB71
split-complementary
#302AAB #AB712A #65AB2A
monochromatic
#141249 #221E7A #302AAB #4842D1 #7873DD

Accessibility & contrast

On white

10.27
#302AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#302AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AAB
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AAB#FFFFFF#000000##FFFFFF
##302AAB1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302aab;
/* rgb */ color: rgb(48, 42, 171);
/* oklch */ color: oklch(39.3% 0.195 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b66c5',
    500: '#302aab',
    950: '#000000',
  },
}
SCSS
$custom: #302aab;
$custom-light: #7b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#302aab",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 242.791,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39287,
    "c": 0.19531,
    "h": 274.6
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#302AAB
secondary
#C0C46D
accent
#E444DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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