#302C98#302C98

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

Color values

HEX#302C98
RGBrgb(48, 44, 152)
HSLhsl(242, 55%, 38%)
HSVhsv(242, 71%, 60%)
CMYKcmyk(68.4%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.85, 36.75, -58.27)
CIE-LCHlch(25.85, 68.89, 302.24°)
OKLaboklab(37.63% 0.0181 -0.1683)
OKLCHoklch(37.63% 0.169 276.1)
XYZxyz(7.7852, 4.6961, 30.1958)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C98 #94982C
analogous
#2C5E98 #302C98 #662C98
triadic
#302C98 #98302C #2C9830
tetradic
#302C98 #982C5E #94982C #2C9866
square
#302C98 #982C5E #94982C #2C9866
split-complementary
#302C98 #98662C #5E982C
monochromatic
#121139 #211E69 #302C98 #403BC6 #6E6AD4

Accessibility & contrast

On white

10.83
#302C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302C98
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C98#FFFFFF#000000##FFFFFF
##302C981.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302c98;
/* rgb */ color: rgb(48, 44, 152);
/* oklch */ color: oklch(37.6% 0.169 276.1);
Tailwind
colors: {
  custom: {
    50: '#7766b7',
    500: '#302c98',
    950: '#000000',
  },
}
SCSS
$custom: #302c98;
$custom-light: #7766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302c98",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 242.222,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37631,
    "c": 0.16926,
    "h": 276.1
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#302C98
secondary
#B8BB65
accent
#DE49D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302C98

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

Preview Lab → · Contrast checker → · Palette generator →

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