#302BA1#302BA1

#302BA1 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.182 H 275.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#302BA1
RGBrgb(48, 43, 161)
HSLhsl(243, 58%, 40%)
HSVhsv(243, 73%, 63%)
CMYKcmyk(70.2%, 73.3%, 0%, 36.9%)
CIE-LABlab(26.53, 40.40, -62.64)
CIE-LCHlch(26.53, 74.54, 302.82°)
OKLaboklab(38.39% 0.0172 -0.1811)
OKLCHoklch(38.39% 0.182 275.4)
XYZxyz(8.5137, 4.9286, 34.2139)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BA1 #9CA12B
analogous
#2B61A1 #302BA1 #6B2BA1
triadic
#302BA1 #A1302B #2BA130
tetradic
#302BA1 #A12B61 #9CA12B #2BA16B
square
#302BA1 #A12B61 #9CA12B #2BA16B
split-complementary
#302BA1 #A16B2B #61A12B
monochromatic
#131140 #221E71 #302BA1 #443ECB #736ED8

Accessibility & contrast

On white

10.58
#302BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#302BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BA1
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BA1#FFFFFF#000000##FFFFFF
##302BA11.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302ba1;
/* rgb */ color: rgb(48, 43, 161);
/* oklch */ color: oklch(38.4% 0.182 275.4);
Tailwind
colors: {
  custom: {
    50: '#7966be',
    500: '#302ba1',
    950: '#000000',
  },
}
SCSS
$custom: #302ba1;
$custom-light: #7966be;
$custom-dark: #000000;
JSON
{
  "hex": "#302ba1",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 242.542,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.38387,
    "c": 0.18188,
    "h": 275.4
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#302BA1
secondary
#BCBF69
accent
#E147DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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