#302EAB#302EAB

#302EAB is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.191 H 274.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#302EAB
RGBrgb(48, 46, 171)
HSLhsl(241, 58%, 43%)
HSVhsv(241, 73%, 67%)
CMYKcmyk(71.9%, 73.1%, 0%, 32.9%)
CIE-LABlab(28.17, 42.00, -65.98)
CIE-LCHlch(28.17, 78.21, 302.48°)
OKLaboklab(39.86% 0.0137 -0.1908)
OKLCHoklch(39.86% 0.191 274.1)
XYZxyz(9.5442, 5.5217, 39.0830)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EAB #A9AB2E
analogous
#2E6AAB #302EAB #6E2EAB
triadic
#302EAB #AB302E #2EAB30
tetradic
#302EAB #AB2E6A #A9AB2E #2EAB6E
square
#302EAB #AB2E6A #A9AB2E #2EAB6E
split-complementary
#302EAB #AB6E2E #6AAB2E
monochromatic
#15144B #22217B #302EAB #4A48CE #7A79DB

Accessibility & contrast

On white

9.98
#302EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#302EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EAB
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EAB#FFFFFF#000000##FFFFFF
##302EAB1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302eab;
/* rgb */ color: rgb(48, 46, 171);
/* oklch */ color: oklch(39.9% 0.191 274.1);
Tailwind
colors: {
  custom: {
    50: '#7b68c5',
    500: '#302eab',
    950: '#000000',
  },
}
SCSS
$custom: #302eab;
$custom-light: #7b68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#302eab",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 240.96,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39862,
    "c": 0.19129,
    "h": 274.1
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#302EAB
secondary
#C2C372
accent
#E147DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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