#302AA6#302AA6

#302AA6 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.189 H 275.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#302AA6
RGBrgb(48, 42, 166)
HSLhsl(243, 60%, 41%)
HSVhsv(243, 75%, 65%)
CMYKcmyk(71.1%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.84, 42.63, -65.16)
CIE-LCHlch(26.84, 77.87, 303.20°)
OKLaboklab(38.76% 0.0168 -0.1884)
OKLCHoklch(38.76% 0.189 275.1)
XYZxyz(8.9276, 5.0366, 36.5707)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AA6 #A0A62A
analogous
#2A62A6 #302AA6 #6E2AA6
triadic
#302AA6 #A6302A #2AA630
tetradic
#302AA6 #A62A62 #A0A62A #2AA66E
square
#302AA6 #A62A62 #A0A62A #2AA66E
split-complementary
#302AA6 #A66E2A #62A62A
monochromatic
#141144 #221E75 #302AA6 #463FCE #7570DB

Accessibility & contrast

On white

10.46
#302AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302AA6
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AA6#FFFFFF#000000##FFFFFF
##302AA61.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302aa6;
/* rgb */ color: rgb(48, 42, 166);
/* oklch */ color: oklch(38.8% 0.189 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a65c2',
    500: '#302aa6',
    950: '#000000',
  },
}
SCSS
$custom: #302aa6;
$custom-light: #7a65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302aa6",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 242.903,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3876,
    "c": 0.18916,
    "h": 275.1
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#302AA6
secondary
#BEC26A
accent
#E345DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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