#302F91#302F91

#302F91 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.156 H 276.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#302F91
RGBrgb(48, 47, 145)
HSLhsl(241, 51%, 38%)
HSVhsv(241, 68%, 57%)
CMYKcmyk(66.9%, 67.6%, 0%, 43.1%)
CIE-LABlab(25.88, 32.46, -53.92)
CIE-LCHlch(25.88, 62.93, 301.05°)
OKLaboklab(37.45% 0.0169 -0.1556)
OKLCHoklch(37.45% 0.156 276.2)
XYZxyz(7.3446, 4.7051, 27.3037)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F91 #90912F
analogous
#2F5F91 #302F91 #612F91
triadic
#302F91 #91302F #2F9130
tetradic
#302F91 #912F5F #90912F #2F9161
square
#302F91 #912F5F #90912F #2F9161
split-complementary
#302F91 #91612F #5F912F
monochromatic
#111135 #212063 #302F91 #3F3EBF #6C6BCF

Accessibility & contrast

On white

10.82
#302F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302F91
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F91#FFFFFF#000000##FFFFFF
##302F911.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00398F
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302f91;
/* rgb */ color: rgb(48, 47, 145);
/* oklch */ color: oklch(37.4% 0.156 276.2);
Tailwind
colors: {
  custom: {
    50: '#7568b2',
    500: '#302f91',
    950: '#000000',
  },
}
SCSS
$custom: #302f91;
$custom-light: #7568b2;
$custom-dark: #000000;
JSON
{
  "hex": "#302f91",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 240.612,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37448,
    "c": 0.15647,
    "h": 276.2
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#302F91
secondary
#B5B665
accent
#DB4DD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302F91

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

Preview Lab → · Contrast checker → · Palette generator →

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