#302A9D#302A9D

#302A9D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.178 H 276.0°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#302A9D
RGBrgb(48, 42, 157)
HSLhsl(243, 58%, 39%)
HSVhsv(243, 73%, 62%)
CMYKcmyk(69.4%, 73.2%, 0%, 38.4%)
CIE-LABlab(25.92, 39.64, -61.22)
CIE-LCHlch(25.92, 72.93, 302.92°)
OKLaboklab(37.83% 0.0186 -0.1769)
OKLCHoklch(37.83% 0.178 276)
XYZxyz(8.1307, 4.7179, 32.3739)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A9D #979D2A
analogous
#2A5E9D #302A9D #6A2A9D
triadic
#302A9D #9D302A #2A9D30
tetradic
#302A9D #9D2A5E #979D2A #2A9D6A
square
#302A9D #9D2A5E #979D2A #2A9D6A
split-complementary
#302A9D #9D6A2A #5E9D2A
monochromatic
#12103C #211D6D #302A9D #413ACA #706AD7

Accessibility & contrast

On white

10.80
#302A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#302A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A9D
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A9D#FFFFFF#000000##FFFFFF
##302A9D1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302a9d;
/* rgb */ color: rgb(48, 42, 157);
/* oklch */ color: oklch(37.8% 0.178 276.0);
Tailwind
colors: {
  custom: {
    50: '#7865bb',
    500: '#302a9d',
    950: '#000000',
  },
}
SCSS
$custom: #302a9d;
$custom-light: #7865bb;
$custom-dark: #000000;
JSON
{
  "hex": "#302a9d",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 243.13,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37827,
    "c": 0.17788,
    "h": 276
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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