#302F8D#302F8D

#302F8D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.151 H 276.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#302F8D
RGBrgb(48, 47, 141)
HSLhsl(241, 50%, 37%)
HSVhsv(241, 67%, 55%)
CMYKcmyk(66%, 66.7%, 0%, 44.7%)
CIE-LABlab(25.51, 31.05, -52.04)
CIE-LCHlch(25.51, 60.60, 300.83°)
OKLaboklab(37.07% 0.0173 -0.15)
OKLCHoklch(37.07% 0.151 276.6)
XYZxyz(7.0416, 4.5839, 25.7078)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F8D #8C8D2F
analogous
#2F5D8D #302F8D #5F2F8D
triadic
#302F8D #8D302F #2F8D30
tetradic
#302F8D #8D2F5D #8C8D2F #2F8D5F
square
#302F8D #8D2F5D #8C8D2F #2F8D5F
split-complementary
#302F8D #8D5F2F #5D8D2F
monochromatic
#111031 #20205F #302F8D #403EBB #6A69CD

Accessibility & contrast

On white

10.96
#302F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#302F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F8D
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F8D#FFFFFF#000000##FFFFFF
##302F8D1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302f8d;
/* rgb */ color: rgb(48, 47, 141);
/* oklch */ color: oklch(37.1% 0.151 276.6);
Tailwind
colors: {
  custom: {
    50: '#7468af',
    500: '#302f8d',
    950: '#000000',
  },
}
SCSS
$custom: #302f8d;
$custom-light: #7468af;
$custom-dark: #000000;
JSON
{
  "hex": "#302f8d",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 240.638,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37073,
    "c": 0.15103,
    "h": 276.6
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#302F8D
secondary
#B3B464
accent
#DA4ED8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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