#302C97#302C97

#302C97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.168 H 276.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#302C97
RGBrgb(48, 44, 151)
HSLhsl(242, 55%, 38%)
HSVhsv(242, 71%, 59%)
CMYKcmyk(68.2%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.75, 36.41, -57.81)
CIE-LCHlch(25.75, 68.33, 302.20°)
OKLaboklab(37.53% 0.0183 -0.167)
OKLCHoklch(37.53% 0.168 276.3)
XYZxyz(7.7037, 4.6634, 29.7663)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C97 #93972C
analogous
#2C5D97 #302C97 #652C97
triadic
#302C97 #97302C #2C9730
tetradic
#302C97 #972C5D #93972C #2C9765
square
#302C97 #972C5D #93972C #2C9765
split-complementary
#302C97 #97652C #5D972C
monochromatic
#121038 #211E68 #302C97 #403AC6 #6E6AD4

Accessibility & contrast

On white

10.87
#302C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#302C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C97
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C97#FFFFFF#000000##FFFFFF
##302C971.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302c97;
/* rgb */ color: rgb(48, 44, 151);
/* oklch */ color: oklch(37.5% 0.168 276.3);
Tailwind
colors: {
  custom: {
    50: '#7766b7',
    500: '#302c97',
    950: '#000000',
  },
}
SCSS
$custom: #302c97;
$custom-light: #7766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302c97",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 242.243,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37532,
    "c": 0.16797,
    "h": 276.3
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#302C97
secondary
#B7BA65
accent
#DE4AD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302C97

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

Preview Lab → · Contrast checker → · Palette generator →

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