#302E8E#302E8E

#302E8E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.154 H 276.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#302E8E
RGBrgb(48, 46, 142)
HSLhsl(241, 51%, 37%)
HSVhsv(241, 68%, 56%)
CMYKcmyk(66.2%, 67.6%, 0%, 44.3%)
CIE-LABlab(25.37, 32.05, -52.90)
CIE-LCHlch(25.37, 61.85, 301.21°)
OKLaboklab(36.99% 0.018 -0.1526)
OKLCHoklch(36.99% 0.154 276.7)
XYZxyz(7.0768, 4.5348, 26.0883)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E8E #8C8E2E
analogous
#2E5C8E #302E8E #602E8E
triadic
#302E8E #8E302E #2E8E30
tetradic
#302E8E #8E2E5C #8C8E2E #2E8E60
square
#302E8E #8E2E5C #8C8E2E #2E8E60
split-complementary
#302E8E #8E602E #5C8E2E
monochromatic
#111032 #201F60 #302E8E #403DBC #6A68CE

Accessibility & contrast

On white

11.01
#302E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#302E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E8E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E8E#FFFFFF#000000##FFFFFF
##302E8E1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302e8e;
/* rgb */ color: rgb(48, 46, 142);
/* oklch */ color: oklch(37.0% 0.154 276.7);
Tailwind
colors: {
  custom: {
    50: '#7567b0',
    500: '#302e8e',
    950: '#000000',
  },
}
SCSS
$custom: #302e8e;
$custom-light: #7567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#302e8e",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 241.25,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36993,
    "c": 0.15364,
    "h": 276.7
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

primary
#302E8E
secondary
#B3B563
accent
#DB4DD8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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