#302A9C#302A9C

#302A9C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.177 H 276.1°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#302A9C
RGBrgb(48, 42, 156)
HSLhsl(243, 58%, 39%)
HSVhsv(243, 73%, 61%)
CMYKcmyk(69.2%, 73.1%, 0%, 38.8%)
CIE-LABlab(25.81, 39.30, -60.78)
CIE-LCHlch(25.81, 72.38, 302.89°)
OKLaboklab(37.72% 0.0188 -0.1756)
OKLCHoklch(37.72% 0.177 276.1)
XYZxyz(8.0457, 4.6839, 31.9261)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A9C #969C2A
analogous
#2A5D9C #302A9C #692A9C
triadic
#302A9C #9C302A #2A9C30
tetradic
#302A9C #9C2A5D #969C2A #2A9C69
square
#302A9C #9C2A5D #969C2A #2A9C69
split-complementary
#302A9C #9C692A #5D9C2A
monochromatic
#12103C #211D6C #302A9C #4139CA #6F6AD7

Accessibility & contrast

On white

10.84
#302A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302A9C
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A9C#FFFFFF#000000##FFFFFF
##302A9C1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302a9c;
/* rgb */ color: rgb(48, 42, 156);
/* oklch */ color: oklch(37.7% 0.177 276.1);
Tailwind
colors: {
  custom: {
    50: '#7865ba',
    500: '#302a9c',
    950: '#000000',
  },
}
SCSS
$custom: #302a9c;
$custom-light: #7865ba;
$custom-dark: #000000;
JSON
{
  "hex": "#302a9c",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 243.158,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37725,
    "c": 0.17661,
    "h": 276.1
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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