#302E7E#302E7E

#302E7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.131 H 278.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#302E7E
RGBrgb(48, 46, 126)
HSLhsl(242, 47%, 34%)
HSVhsv(242, 63%, 49%)
CMYKcmyk(61.9%, 63.5%, 0%, 50.6%)
CIE-LABlab(23.96, 26.40, -45.19)
CIE-LCHlch(23.96, 52.33, 300.30°)
OKLaboklab(35.53% 0.0193 -0.1299)
OKLCHoklch(35.53% 0.131 278.5)
XYZxyz(5.9606, 4.0883, 20.2096)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E7E #7C7E2E
analogous
#2E547E #302E7E #582E7E
triadic
#302E7E #7E302E #2E7E30
tetradic
#302E7E #7E2E54 #7C7E2E #2E7E58
square
#302E7E #7E2E54 #7C7E2E #2E7E58
split-complementary
#302E7E #7E582E #547E2E
monochromatic
#0E0D24 #1F1E51 #302E7E #413EAB #6461C5

Accessibility & contrast

On white

11.55
#302E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E7E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E7E#FFFFFF#000000##FFFFFF
##302E7E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302e7e;
/* rgb */ color: rgb(48, 46, 126);
/* oklch */ color: oklch(35.5% 0.131 278.5);
Tailwind
colors: {
  custom: {
    50: '#7167a4',
    500: '#302e7e',
    950: '#000000',
  },
}
SCSS
$custom: #302e7e;
$custom-light: #7167a4;
$custom-dark: #000000;
JSON
{
  "hex": "#302e7e",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 241.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35531,
    "c": 0.13137,
    "h": 278.5
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#302E7E
secondary
#AAAC5C
accent
#D652D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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