#302A98#302A98

#302A98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.172 H 276.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#302A98
RGBrgb(48, 42, 152)
HSLhsl(243, 57%, 38%)
HSVhsv(243, 72%, 60%)
CMYKcmyk(68.4%, 72.4%, 0%, 40.4%)
CIE-LABlab(25.41, 37.96, -58.99)
CIE-LCHlch(25.41, 70.14, 302.76°)
OKLaboklab(37.32% 0.0195 -0.1704)
OKLCHoklch(37.32% 0.172 276.5)
XYZxyz(7.7125, 4.5506, 30.1716)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A98 #92982A
analogous
#2A5B98 #302A98 #672A98
triadic
#302A98 #98302A #2A9830
tetradic
#302A98 #982A5B #92982A #2A9867
square
#302A98 #982A5B #92982A #2A9867
split-complementary
#302A98 #98672A #5B982A
monochromatic
#121038 #211D68 #302A98 #3F37C8 #6D67D5

Accessibility & contrast

On white

10.99
#302A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#302A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A98
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A98#FFFFFF#000000##FFFFFF
##302A981.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302a98;
/* rgb */ color: rgb(48, 42, 152);
/* oklch */ color: oklch(37.3% 0.172 276.5);
Tailwind
colors: {
  custom: {
    50: '#7765b7',
    500: '#302a98',
    950: '#000000',
  },
}
SCSS
$custom: #302a98;
$custom-light: #7765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302a98",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 243.273,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37318,
    "c": 0.1715,
    "h": 276.5
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#302A98
secondary
#B7BB62
accent
#E048D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #302A98

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

Preview Lab → · Contrast checker → · Palette generator →

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