#302F8F#302F8F

#302F8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.154 H 276.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#302F8F
RGBrgb(48, 47, 143)
HSLhsl(241, 51%, 37%)
HSVhsv(241, 67%, 56%)
CMYKcmyk(66.4%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.70, 31.76, -52.98)
CIE-LCHlch(25.70, 61.77, 300.94°)
OKLaboklab(37.26% 0.0171 -0.1528)
OKLCHoklch(37.26% 0.154 276.4)
XYZxyz(7.1917, 4.6440, 26.4987)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F8F #8E8F2F
analogous
#2F5E8F #302F8F #602F8F
triadic
#302F8F #8F302F #2F8F30
tetradic
#302F8F #8F2F5E #8E8F2F #2F8F60
square
#302F8F #8F2F5E #8E8F2F #2F8F60
split-complementary
#302F8F #8F602F #5E8F2F
monochromatic
#111133 #212061 #302F8F #3F3EBD #6B6ACE

Accessibility & contrast

On white

10.89
#302F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#302F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F8F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F8F#FFFFFF#000000##FFFFFF
##302F8F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302f8f;
/* rgb */ color: rgb(48, 47, 143);
/* oklch */ color: oklch(37.3% 0.154 276.4);
Tailwind
colors: {
  custom: {
    50: '#7568b1',
    500: '#302f8f',
    950: '#000000',
  },
}
SCSS
$custom: #302f8f;
$custom-light: #7568b1;
$custom-dark: #000000;
JSON
{
  "hex": "#302f8f",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 240.625,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3726,
    "c": 0.15376,
    "h": 276.4
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#302F8F
secondary
#B4B565
accent
#DA4ED9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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