#302295#302295

#302295 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.176 H 278.2°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#302295
RGBrgb(48, 34, 149)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 77%, 58%)
CMYKcmyk(67.8%, 77.2%, 0%, 41.6%)
CIE-LABlab(23.48, 41.53, -60.33)
CIE-LCHlch(23.48, 73.25, 304.55°)
OKLaboklab(35.85% 0.0251 -0.1743)
OKLCHoklch(35.85% 0.176 278.2)
XYZxyz(7.2140, 3.9417, 28.8086)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302295 #879522
analogous
#224D95 #302295 #692295
triadic
#302295 #953022 #229530
tetradic
#302295 #95224D #879522 #229569
square
#302295 #95224D #879522 #229569
split-complementary
#302295 #956922 #4D9522
monochromatic
#100B31 #201763 #302295 #402DC7 #6858D9

Accessibility & contrast

On white

11.74
#302295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302295
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302295#FFFFFF#000000##FFFFFF
##3022951.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302295;
/* rgb */ color: rgb(48, 34, 149);
/* oklch */ color: oklch(35.9% 0.176 278.2);
Tailwind
colors: {
  custom: {
    50: '#7760b5',
    500: '#302295',
    950: '#000000',
  },
}
SCSS
$custom: #302295;
$custom-light: #7760b5;
$custom-dark: #000000;
JSON
{
  "hex": "#302295",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 247.304,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35852,
    "c": 0.17606,
    "h": 278.2
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#302295
secondary
#B1BD56
accent
#E642D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302295

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

Preview Lab → · Contrast checker → · Palette generator →

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