#302E97#302E97

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

Color values

HEX#302E97
RGBrgb(48, 46, 151)
HSLhsl(241, 53%, 39%)
HSVhsv(241, 70%, 59%)
CMYKcmyk(68.2%, 69.5%, 0%, 40.8%)
CIE-LABlab(26.20, 35.18, -57.07)
CIE-LCHlch(26.20, 67.05, 301.65°)
OKLaboklab(37.86% 0.0169 -0.1648)
OKLCHoklch(37.86% 0.166 275.8)
XYZxyz(7.7800, 4.8160, 29.7917)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E97 #95972E
analogous
#2E6097 #302E97 #642E97
triadic
#302E97 #97302E #2E9730
tetradic
#302E97 #972E60 #95972E #2E9764
square
#302E97 #972E60 #95972E #2E9764
split-complementary
#302E97 #97642E #60972E
monochromatic
#121139 #212068 #302E97 #413EC4 #6F6DD2

Accessibility & contrast

On white

10.70
#302E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#302E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E97
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E97#FFFFFF#000000##FFFFFF
##302E971.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #302e97;
/* rgb */ color: rgb(48, 46, 151);
/* oklch */ color: oklch(37.9% 0.166 275.8);
Tailwind
colors: {
  custom: {
    50: '#7767b7',
    500: '#302e97',
    950: '#000000',
  },
}
SCSS
$custom: #302e97;
$custom-light: #7767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302e97",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 241.143,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37856,
    "c": 0.16566,
    "h": 275.8
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302E97

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

Preview Lab → · Contrast checker → · Palette generator →

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