#302EA8#302EA8

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

Color values

HEX#302EA8
RGBrgb(48, 46, 168)
HSLhsl(241, 57%, 42%)
HSVhsv(241, 73%, 66%)
CMYKcmyk(71.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(27.87, 40.99, -64.67)
CIE-LCHlch(27.87, 76.57, 302.37°)
OKLaboklab(39.55% 0.0143 -0.187)
OKLCHoklch(39.55% 0.188 274.4)
XYZxyz(9.2615, 5.4086, 37.5941)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA8 #A6A82E
analogous
#2E69A8 #302EA8 #6D2EA8
triadic
#302EA8 #A8302E #2EA830
tetradic
#302EA8 #A82E69 #A6A82E #2EA86D
square
#302EA8 #A82E69 #A6A82E #2EA86D
split-complementary
#302EA8 #A86D2E #69A82E
monochromatic
#151448 #222178 #302EA8 #4947CD #7877DA

Accessibility & contrast

On white

10.09
#302EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302EA8
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA8#FFFFFF#000000##FFFFFF
##302EA81.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302ea8;
/* rgb */ color: rgb(48, 46, 168);
/* oklch */ color: oklch(39.6% 0.188 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a68c3',
    500: '#302ea8',
    950: '#000000',
  },
}
SCSS
$custom: #302ea8;
$custom-light: #7a68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea8",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 240.984,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39554,
    "c": 0.18754,
    "h": 274.4
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

primary
#302EA8
secondary
#C0C270
accent
#E048DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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