#302A9E#302A9E

#302A9E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.179 H 275.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#302A9E
RGBrgb(48, 42, 158)
HSLhsl(243, 58%, 39%)
HSVhsv(243, 73%, 62%)
CMYKcmyk(69.6%, 73.4%, 0%, 38%)
CIE-LABlab(26.02, 39.97, -61.66)
CIE-LCHlch(26.02, 73.49, 302.95°)
OKLaboklab(37.93% 0.0184 -0.1782)
OKLCHoklch(37.93% 0.179 275.9)
XYZxyz(8.2164, 4.7522, 32.8254)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A9E #989E2A
analogous
#2A5E9E #302A9E #6A2A9E
triadic
#302A9E #9E302A #2A9E30
tetradic
#302A9E #9E2A5E #989E2A #2A9E6A
square
#302A9E #9E2A5E #989E2A #2A9E6A
split-complementary
#302A9E #9E6A2A #5E9E2A
monochromatic
#13103D #211D6E #302A9E #423ACB #706BD8

Accessibility & contrast

On white

10.77
#302A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#302A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A9E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A9E#FFFFFF#000000##FFFFFF
##302A9E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #302a9e;
/* rgb */ color: rgb(48, 42, 158);
/* oklch */ color: oklch(37.9% 0.179 275.9);
Tailwind
colors: {
  custom: {
    50: '#7865bc',
    500: '#302a9e',
    950: '#000000',
  },
}
SCSS
$custom: #302a9e;
$custom-light: #7865bc;
$custom-dark: #000000;
JSON
{
  "hex": "#302a9e",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 243.103,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.17915,
    "h": 275.9
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#302A9E
secondary
#BABE66
accent
#E147D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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