#302E98#302E98

#302E98 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.167 H 275.8°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#302E98
RGBrgb(48, 46, 152)
HSLhsl(241, 54%, 39%)
HSVhsv(241, 70%, 60%)
CMYKcmyk(68.4%, 69.7%, 0%, 40.4%)
CIE-LABlab(26.30, 35.53, -57.53)
CIE-LCHlch(26.30, 67.62, 301.70°)
OKLaboklab(37.95% 0.0167 -0.1661)
OKLCHoklch(37.95% 0.167 275.8)
XYZxyz(7.8616, 4.8487, 30.2213)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E98 #96982E
analogous
#2E6198 #302E98 #652E98
triadic
#302E98 #98302E #2E9830
tetradic
#302E98 #982E61 #96982E #2E9865
square
#302E98 #982E61 #96982E #2E9865
split-complementary
#302E98 #98652E #61982E
monochromatic
#12123A #212069 #302E98 #413EC5 #6F6DD3

Accessibility & contrast

On white

10.66
#302E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#302E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E98
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E98#FFFFFF#000000##FFFFFF
##302E981.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #302e98;
/* rgb */ color: rgb(48, 46, 152);
/* oklch */ color: oklch(38.0% 0.167 275.8);
Tailwind
colors: {
  custom: {
    50: '#7767b7',
    500: '#302e98',
    950: '#000000',
  },
}
SCSS
$custom: #302e98;
$custom-light: #7767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302e98",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 241.132,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.16698,
    "h": 275.8
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#302E98
secondary
#B9BA68
accent
#DD4BDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302E98

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

Preview Lab → · Contrast checker → · Palette generator →

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