#302BA6#302BA6

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

Color values

HEX#302BA6
RGBrgb(48, 43, 166)
HSLhsl(242, 59%, 41%)
HSVhsv(242, 74%, 65%)
CMYKcmyk(71.1%, 74.1%, 0%, 34.9%)
CIE-LABlab(27.04, 42.06, -64.83)
CIE-LCHlch(27.04, 77.28, 302.98°)
OKLaboklab(38.9% 0.0163 -0.1874)
OKLCHoklch(38.9% 0.188 275)
XYZxyz(8.9635, 5.1085, 36.5827)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BA6 #A1A62B
analogous
#2B63A6 #302BA6 #6D2BA6
triadic
#302BA6 #A6302B #2BA630
tetradic
#302BA6 #A62B63 #A1A62B #2BA66D
square
#302BA6 #A62B63 #A1A62B #2BA66D
split-complementary
#302BA6 #A66D2B #63A62B
monochromatic
#141245 #221E75 #302BA6 #4641CE #7571DA

Accessibility & contrast

On white

10.39
#302BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302BA6
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BA6#FFFFFF#000000##FFFFFF
##302BA61.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302ba6;
/* rgb */ color: rgb(48, 43, 166);
/* oklch */ color: oklch(38.9% 0.188 275.0);
Tailwind
colors: {
  custom: {
    50: '#7a66c2',
    500: '#302ba6',
    950: '#000000',
  },
}
SCSS
$custom: #302ba6;
$custom-light: #7a66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302ba6",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 242.439,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38904,
    "c": 0.18815,
    "h": 275
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#302BA6
secondary
#BEC16B
accent
#E246DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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