#302FA5#302FA5

#302FA5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.183 H 274.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#302FA5
RGBrgb(48, 47, 165)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(70.9%, 71.5%, 0%, 35.3%)
CIE-LABlab(27.78, 39.38, -63.00)
CIE-LCHlch(27.78, 74.30, 302.01°)
OKLaboklab(39.4% 0.0142 -0.1821)
OKLCHoklch(39.4% 0.183 274.4)
XYZxyz(9.0247, 5.3772, 36.1523)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FA5 #A4A52F
analogous
#2F69A5 #302FA5 #6B2FA5
triadic
#302FA5 #A5302F #2FA530
tetradic
#302FA5 #A52F69 #A4A52F #2FA56B
square
#302FA5 #A52F69 #A4A52F #2FA56B
split-complementary
#302FA5 #A56B2F #69A52F
monochromatic
#141446 #222175 #302FA5 #4847CB #7776D8

Accessibility & contrast

On white

10.12
#302FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#302FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FA5
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FA5#FFFFFF#000000##FFFFFF
##302FA51.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302fa5;
/* rgb */ color: rgb(48, 47, 165);
/* oklch */ color: oklch(39.4% 0.183 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a69c1',
    500: '#302fa5',
    950: '#000000',
  },
}
SCSS
$custom: #302fa5;
$custom-light: #7a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#302fa5",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 240.508,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39403,
    "c": 0.18268,
    "h": 274.4
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#302FA5
secondary
#BFC070
accent
#DF49DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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