#302DA3#302DA3

#302DA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.182 H 274.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#302DA3
RGBrgb(48, 45, 163)
HSLhsl(242, 57%, 41%)
HSVhsv(242, 72%, 64%)
CMYKcmyk(70.6%, 72.4%, 0%, 36.1%)
CIE-LABlab(27.15, 39.89, -62.83)
CIE-LCHlch(27.15, 74.42, 302.41°)
OKLaboklab(38.89% 0.0157 -0.1816)
OKLCHoklch(38.89% 0.182 274.9)
XYZxyz(8.7660, 5.1487, 35.1751)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DA3 #A0A32D
analogous
#2D65A3 #302DA3 #6B2DA3
triadic
#302DA3 #A3302D #2DA330
tetradic
#302DA3 #A32D65 #A0A32D #2DA36B
square
#302DA3 #A32D65 #A0A32D #2DA36B
split-complementary
#302DA3 #A36B2D #65A32D
monochromatic
#141343 #222073 #302DA3 #4642CB #7572D8

Accessibility & contrast

On white

10.35
#302DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#302DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DA3
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DA3#FFFFFF#000000##FFFFFF
##302DA31.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302da3;
/* rgb */ color: rgb(48, 45, 163);
/* oklch */ color: oklch(38.9% 0.182 274.9);
Tailwind
colors: {
  custom: {
    50: '#7967bf',
    500: '#302da3',
    950: '#000000',
  },
}
SCSS
$custom: #302da3;
$custom-light: #7967bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302da3",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 241.525,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38893,
    "c": 0.18229,
    "h": 274.9
  },
  "luminance": 0.05149
}

Semantic roles & 50–950 ramp

primary
#302DA3
secondary
#BEC06C
accent
#E048DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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