#302F8E#302F8E

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

Color values

HEX#302F8E
RGBrgb(48, 47, 142)
HSLhsl(241, 50%, 37%)
HSVhsv(241, 67%, 56%)
CMYKcmyk(66.2%, 66.9%, 0%, 44.3%)
CIE-LABlab(25.60, 31.41, -52.51)
CIE-LCHlch(25.60, 61.18, 300.88°)
OKLaboklab(37.17% 0.0172 -0.1514)
OKLCHoklch(37.17% 0.152 276.5)
XYZxyz(7.1163, 4.6138, 26.1015)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F8E #8D8E2F
analogous
#2F5D8E #302F8E #602F8E
triadic
#302F8E #8E302F #2F8E30
tetradic
#302F8E #8E2F5D #8D8E2F #2F8E60
square
#302F8E #8E2F5D #8D8E2F #2F8E60
split-complementary
#302F8E #8E602F #5D8E2F
monochromatic
#111132 #202060 #302F8E #403EBC #6B6ACE

Accessibility & contrast

On white

10.92
#302F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302F8E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F8E#FFFFFF#000000##FFFFFF
##302F8E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302f8e;
/* rgb */ color: rgb(48, 47, 142);
/* oklch */ color: oklch(37.2% 0.152 276.5);
Tailwind
colors: {
  custom: {
    50: '#7468b0',
    500: '#302f8e',
    950: '#000000',
  },
}
SCSS
$custom: #302f8e;
$custom-light: #7468b0;
$custom-dark: #000000;
JSON
{
  "hex": "#302f8e",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 240.632,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37166,
    "c": 0.1524,
    "h": 276.5
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#302F8E
secondary
#B4B564
accent
#DA4ED8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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