#302BA9#302BA9

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

Color values

HEX#302BA9
RGBrgb(48, 43, 169)
HSLhsl(242, 59%, 42%)
HSVhsv(242, 75%, 66%)
CMYKcmyk(71.6%, 74.6%, 0%, 33.7%)
CIE-LABlab(27.35, 43.06, -66.13)
CIE-LCHlch(27.35, 78.91, 303.07°)
OKLaboklab(39.22% 0.0157 -0.1912)
OKLCHoklch(39.22% 0.192 274.7)
XYZxyz(9.2419, 5.2198, 38.0489)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BA9 #A4A92B
analogous
#2B65A9 #302BA9 #6F2BA9
triadic
#302BA9 #A9302B #2BA930
tetradic
#302BA9 #A92B65 #A4A92B #2BA96F
square
#302BA9 #A92B65 #A4A92B #2BA96F
split-complementary
#302BA9 #A96F2B #65A92B
monochromatic
#141247 #221F78 #302BA9 #4842CF #7773DB

Accessibility & contrast

On white

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

On black

2.04
#302BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##302BA9#FFFFFF#000000##FFFFFF
##302BA91.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302ba9;
/* rgb */ color: rgb(48, 43, 169);
/* oklch */ color: oklch(39.2% 0.192 274.7);
Tailwind
colors: {
  custom: {
    50: '#7b66c4',
    500: '#302ba9',
    950: '#000000',
  },
}
SCSS
$custom: #302ba9;
$custom-light: #7b66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#302ba9",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 242.381,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39218,
    "c": 0.19187,
    "h": 274.7
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#302BA9
secondary
#BFC36D
accent
#E345DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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