#302AA8#302AA8

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

Color values

HEX#302AA8
RGBrgb(48, 42, 168)
HSLhsl(243, 60%, 41%)
HSVhsv(243, 75%, 66%)
CMYKcmyk(71.4%, 75%, 0%, 34.1%)
CIE-LABlab(27.05, 43.29, -66.03)
CIE-LCHlch(27.05, 78.95, 303.25°)
OKLaboklab(38.97% 0.0164 -0.1909)
OKLCHoklch(38.97% 0.192 274.9)
XYZxyz(9.1124, 5.1106, 37.5444)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AA8 #A2A82A
analogous
#2A63A8 #302AA8 #6F2AA8
triadic
#302AA8 #A8302A #2AA830
tetradic
#302AA8 #A82A63 #A2A82A #2AA86F
square
#302AA8 #A82A63 #A2A82A #2AA86F
split-complementary
#302AA8 #A86F2A #63A82A
monochromatic
#141246 #221E77 #302AA8 #4740CF #7671DB

Accessibility & contrast

On white

10.38
#302AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#302AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AA8
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AA8#FFFFFF#000000##FFFFFF
##302AA81.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302aa8;
/* rgb */ color: rgb(48, 42, 168);
/* oklch */ color: oklch(39.0% 0.192 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b65c3',
    500: '#302aa8',
    950: '#000000',
  },
}
SCSS
$custom: #302aa8;
$custom-light: #7b65c3;
$custom-dark: #000000;
JSON
{
  "hex": "#302aa8",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 242.857,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38971,
    "c": 0.19163,
    "h": 274.9
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#302AA8
secondary
#BEC36B
accent
#E345DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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