#302FA2#302FA2

#302FA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.179 H 274.7°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#302FA2
RGBrgb(48, 47, 162)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 64%)
CMYKcmyk(70.4%, 71%, 0%, 36.5%)
CIE-LABlab(27.49, 38.36, -61.67)
CIE-LCHlch(27.49, 72.63, 301.88°)
OKLaboklab(39.1% 0.0146 -0.1782)
OKLCHoklch(39.1% 0.179 274.7)
XYZxyz(8.7549, 5.2692, 34.7311)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FA2 #A1A22F
analogous
#2F67A2 #302FA2 #692FA2
triadic
#302FA2 #A2302F #2FA230
tetradic
#302FA2 #A22F67 #A1A22F #2FA269
square
#302FA2 #A22F67 #A1A22F #2FA269
split-complementary
#302FA2 #A2692F #67A22F
monochromatic
#141343 #222173 #302FA2 #4645C9 #7575D7

Accessibility & contrast

On white

10.22
#302FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302FA2
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FA2#FFFFFF#000000##FFFFFF
##302FA21.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302fa2;
/* rgb */ color: rgb(48, 47, 162);
/* oklch */ color: oklch(39.1% 0.179 274.7);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#302fa2',
    950: '#000000',
  },
}
SCSS
$custom: #302fa2;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302fa2",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 240.522,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39103,
    "c": 0.17884,
    "h": 274.7
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#302FA2
secondary
#BEBF6E
accent
#DE49DD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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