#302BA2#302BA2

#302BA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.183 H 275.3°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#302BA2
RGBrgb(48, 43, 162)
HSLhsl(243, 58%, 40%)
HSVhsv(243, 73%, 64%)
CMYKcmyk(70.4%, 73.5%, 0%, 36.5%)
CIE-LABlab(26.63, 40.73, -63.08)
CIE-LCHlch(26.63, 75.09, 302.85°)
OKLaboklab(38.49% 0.0171 -0.1824)
OKLCHoklch(38.49% 0.183 275.3)
XYZxyz(8.6022, 4.9640, 34.6802)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BA2 #9DA22B
analogous
#2B61A2 #302BA2 #6B2BA2
triadic
#302BA2 #A2302B #2BA230
tetradic
#302BA2 #A22B61 #9DA22B #2BA26B
square
#302BA2 #A22B61 #9DA22B #2BA26B
split-complementary
#302BA2 #A26B2B #61A22B
monochromatic
#131141 #221E72 #302BA2 #443ECC #736FD9

Accessibility & contrast

On white

10.54
#302BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302BA2
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BA2#FFFFFF#000000##FFFFFF
##302BA21.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302ba2;
/* rgb */ color: rgb(48, 43, 162);
/* oklch */ color: oklch(38.5% 0.183 275.3);
Tailwind
colors: {
  custom: {
    50: '#7966bf',
    500: '#302ba2',
    950: '#000000',
  },
}
SCSS
$custom: #302ba2;
$custom-light: #7966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302ba2",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 242.521,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3849,
    "c": 0.18315,
    "h": 275.3
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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