#302F8A#302F8A

#302F8A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.147 H 276.9°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#302F8A
RGBrgb(48, 47, 138)
HSLhsl(241, 49%, 36%)
HSVhsv(241, 66%, 54%)
CMYKcmyk(65.2%, 65.9%, 0%, 45.9%)
CIE-LABlab(25.25, 30.00, -50.61)
CIE-LCHlch(25.25, 58.83, 300.65°)
OKLaboklab(36.8% 0.0176 -0.1459)
OKLCHoklch(36.8% 0.147 276.9)
XYZxyz(6.8214, 4.4958, 24.5481)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F8A #898A2F
analogous
#2F5C8A #302F8A #5E2F8A
triadic
#302F8A #8A302F #2F8A30
tetradic
#302F8A #8A2F5C #898A2F #2F8A5E
square
#302F8A #8A2F5C #898A2F #2F8A5E
split-complementary
#302F8A #8A5E2F #5C8A2F
monochromatic
#10102F #201F5C #302F8A #403FB8 #6968CC

Accessibility & contrast

On white

11.06
#302F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#302F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F8A
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F8A#FFFFFF#000000##FFFFFF
##302F8A1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302f8a;
/* rgb */ color: rgb(48, 47, 138);
/* oklch */ color: oklch(36.8% 0.147 276.9);
Tailwind
colors: {
  custom: {
    50: '#7468ad',
    500: '#302f8a',
    950: '#000000',
  },
}
SCSS
$custom: #302f8a;
$custom-light: #7468ad;
$custom-dark: #000000;
JSON
{
  "hex": "#302f8a",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 240.659,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36795,
    "c": 0.14691,
    "h": 276.9
  },
  "luminance": 0.04496
}

Semantic roles & 50–950 ramp

primary
#302F8A
secondary
#B2B362
accent
#D94FD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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