#302E8A#302E8A

#302E8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.148 H 277.1°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#302E8A
RGBrgb(48, 46, 138)
HSLhsl(241, 50%, 36%)
HSVhsv(241, 67%, 54%)
CMYKcmyk(65.2%, 66.7%, 0%, 45.9%)
CIE-LABlab(25.00, 30.64, -51.01)
CIE-LCHlch(25.00, 59.50, 300.99°)
OKLaboklab(36.62% 0.0184 -0.147)
OKLCHoklch(36.62% 0.148 277.1)
XYZxyz(6.7819, 4.4168, 24.5350)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E8A #888A2E
analogous
#2E5A8A #302E8A #5E2E8A
triadic
#302E8A #8A302E #2E8A30
tetradic
#302E8A #8A2E5A #888A2E #2E8A5E
square
#302E8A #8A2E5A #888A2E #2E8A5E
split-complementary
#302E8A #8A5E2E #5A8A2E
monochromatic
#100F2E #201F5C #302E8A #403DB8 #6966CC

Accessibility & contrast

On white

11.15
#302E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#302E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E8A
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E8A#FFFFFF#000000##FFFFFF
##302E8A1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302e8a;
/* rgb */ color: rgb(48, 46, 138);
/* oklch */ color: oklch(36.6% 0.148 277.1);
Tailwind
colors: {
  custom: {
    50: '#7467ad',
    500: '#302e8a',
    950: '#000000',
  },
}
SCSS
$custom: #302e8a;
$custom-light: #7467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#302e8a",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 241.304,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36618,
    "c": 0.14818,
    "h": 277.1
  },
  "luminance": 0.04417
}

Semantic roles & 50–950 ramp

primary
#302E8A
secondary
#B1B361
accent
#DA4ED6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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