#302AA7#302AA7

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

Color values

HEX#302AA7
RGBrgb(48, 42, 167)
HSLhsl(243, 60%, 41%)
HSVhsv(243, 75%, 65%)
CMYKcmyk(71.3%, 74.9%, 0%, 34.5%)
CIE-LABlab(26.94, 42.96, -65.60)
CIE-LCHlch(26.94, 78.41, 303.22°)
OKLaboklab(38.87% 0.0166 -0.1897)
OKLCHoklch(38.87% 0.19 275)
XYZxyz(9.0196, 5.0735, 37.0557)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AA7 #A1A72A
analogous
#2A62A7 #302AA7 #6E2AA7
triadic
#302AA7 #A7302A #2AA730
tetradic
#302AA7 #A72A62 #A1A72A #2AA76E
square
#302AA7 #A72A62 #A1A72A #2AA76E
split-complementary
#302AA7 #A76E2A #62A72A
monochromatic
#141145 #221E76 #302AA7 #463FCF #7570DB

Accessibility & contrast

On white

10.42
#302AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#302AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AA7
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AA7#FFFFFF#000000##FFFFFF
##302AA71.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302aa7;
/* rgb */ color: rgb(48, 42, 167);
/* oklch */ color: oklch(38.9% 0.190 275.0);
Tailwind
colors: {
  custom: {
    50: '#7b65c2',
    500: '#302aa7',
    950: '#000000',
  },
}
SCSS
$custom: #302aa7;
$custom-light: #7b65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302aa7",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 242.88,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.1904,
    "h": 275
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#302AA7
secondary
#BEC26B
accent
#E345DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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