#302292#302292

#302292 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.172 H 278.6°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#302292
RGBrgb(48, 34, 146)
HSLhsl(248, 62%, 35%)
HSVhsv(248, 77%, 57%)
CMYKcmyk(67.1%, 76.7%, 0%, 42.7%)
CIE-LABlab(23.16, 40.57, -59.00)
CIE-LCHlch(23.16, 71.60, 304.51°)
OKLaboklab(35.53% 0.0259 -0.1704)
OKLCHoklch(35.53% 0.172 278.6)
XYZxyz(6.9776, 3.8472, 27.5634)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302292 #849222
analogous
#224C92 #302292 #682292
triadic
#302292 #923022 #229230
tetradic
#302292 #92224C #849222 #229268
square
#302292 #92224C #849222 #229268
split-complementary
#302292 #926822 #4C9222
monochromatic
#0F0B2F #201660 #302292 #402EC4 #6757D8

Accessibility & contrast

On white

11.87
#302292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#302292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302292
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302292#FFFFFF#000000##FFFFFF
##3022921.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302292;
/* rgb */ color: rgb(48, 34, 146);
/* oklch */ color: oklch(35.5% 0.172 278.6);
Tailwind
colors: {
  custom: {
    50: '#7760b3',
    500: '#302292',
    950: '#000000',
  },
}
SCSS
$custom: #302292;
$custom-light: #7760b3;
$custom-dark: #000000;
JSON
{
  "hex": "#302292",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 247.5,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35533,
    "c": 0.17234,
    "h": 278.6
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#302292
secondary
#AFBC54
accent
#E543D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302292

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

Preview Lab → · Contrast checker → · Palette generator →

#302292 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva