#302BAE#302BAE

#302BAE is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.198 H 274.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#302BAE
RGBrgb(48, 43, 174)
HSLhsl(242, 60%, 43%)
HSVhsv(242, 75%, 68%)
CMYKcmyk(72.4%, 75.3%, 0%, 31.8%)
CIE-LABlab(27.88, 44.70, -68.27)
CIE-LCHlch(27.88, 81.60, 303.22°)
OKLaboklab(39.74% 0.0147 -0.1975)
OKLCHoklch(39.74% 0.198 274.3)
XYZxyz(9.7202, 5.4112, 40.5684)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BAE #A9AE2B
analogous
#2B68AE #302BAE #712BAE
triadic
#302BAE #AE302B #2BAE30
tetradic
#302BAE #AE2B68 #A9AE2B #2BAE71
square
#302BAE #AE2B68 #A9AE2B #2BAE71
split-complementary
#302BAE #AE712B #68AE2B
monochromatic
#15134C #221F7D #302BAE #4A45D1 #7A76DD

Accessibility & contrast

On white

10.08
#302BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302BAE
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BAE#FFFFFF#000000##FFFFFF
##302BAE1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#003CAC
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302bae;
/* rgb */ color: rgb(48, 43, 174);
/* oklch */ color: oklch(39.7% 0.198 274.3);
Tailwind
colors: {
  custom: {
    50: '#7c66c7',
    500: '#302bae',
    950: '#000000',
  },
}
SCSS
$custom: #302bae;
$custom-light: #7c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#302bae",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 242.29,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39744,
    "c": 0.19801,
    "h": 274.3
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#302BAE
secondary
#C2C570
accent
#E444DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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