#302BAB#302BAB

#302BAB is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.194 H 274.5°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#302BAB
RGBrgb(48, 43, 171)
HSLhsl(242, 60%, 42%)
HSVhsv(242, 75%, 67%)
CMYKcmyk(71.9%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.56, 43.72, -66.99)
CIE-LCHlch(27.56, 79.99, 303.13°)
OKLaboklab(39.43% 0.0153 -0.1937)
OKLCHoklch(39.43% 0.194 274.5)
XYZxyz(9.4311, 5.2955, 39.0453)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BAB #A6AB2B
analogous
#2B66AB #302BAB #702BAB
triadic
#302BAB #AB302B #2BAB30
tetradic
#302BAB #AB2B66 #A6AB2B #2BAB70
square
#302BAB #AB2B66 #A6AB2B #2BAB70
split-complementary
#302BAB #AB702B #66AB2B
monochromatic
#151249 #221F7A #302BAB #4943D0 #7874DC

Accessibility & contrast

On white

10.20
#302BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#302BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BAB
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BAB#FFFFFF#000000##FFFFFF
##302BAB1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302bab;
/* rgb */ color: rgb(48, 43, 171);
/* oklch */ color: oklch(39.4% 0.194 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b66c5',
    500: '#302bab',
    950: '#000000',
  },
}
SCSS
$custom: #302bab;
$custom-light: #7b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#302bab",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 242.344,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.19433,
    "h": 274.5
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#302BAB
secondary
#C0C46E
accent
#E345DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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