#302BA8#302BA8

#302BA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.191 H 274.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#302BA8
RGBrgb(48, 43, 168)
HSLhsl(242, 59%, 41%)
HSVhsv(242, 74%, 66%)
CMYKcmyk(71.4%, 74.4%, 0%, 34.1%)
CIE-LABlab(27.25, 42.73, -65.70)
CIE-LCHlch(27.25, 78.37, 303.04°)
OKLaboklab(39.11% 0.0159 -0.19)
OKLCHoklch(39.11% 0.191 274.8)
XYZxyz(9.1483, 5.1824, 37.5564)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BA8 #A3A82B
analogous
#2B65A8 #302BA8 #6F2BA8
triadic
#302BA8 #A8302B #2BA830
tetradic
#302BA8 #A82B65 #A3A82B #2BA86F
square
#302BA8 #A82B65 #A3A82B #2BA86F
split-complementary
#302BA8 #A86F2B #65A82B
monochromatic
#141247 #221F77 #302BA8 #4742CF #7772DB

Accessibility & contrast

On white

10.31
#302BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#302BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BA8
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BA8#FFFFFF#000000##FFFFFF
##302BA81.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302ba8;
/* rgb */ color: rgb(48, 43, 168);
/* oklch */ color: oklch(39.1% 0.191 274.8);
Tailwind
colors: {
  custom: {
    50: '#7b66c3',
    500: '#302ba8',
    950: '#000000',
  },
}
SCSS
$custom: #302ba8;
$custom-light: #7b66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#302ba8",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 242.4,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39113,
    "c": 0.19063,
    "h": 274.8
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#302BA8
secondary
#BFC26C
accent
#E245DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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