#302195#302195

#302195 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.177 H 278.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#302195
RGBrgb(48, 33, 149)
HSLhsl(248, 64%, 36%)
HSVhsv(248, 78%, 58%)
CMYKcmyk(67.8%, 77.9%, 0%, 41.6%)
CIE-LABlab(23.29, 42.07, -60.64)
CIE-LCHlch(23.29, 73.81, 304.75°)
OKLaboklab(35.72% 0.0257 -0.1752)
OKLCHoklch(35.72% 0.177 278.4)
XYZxyz(7.1858, 3.8854, 28.7992)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302195 #869521
analogous
#214C95 #302195 #6A2195
triadic
#302195 #953021 #219530
tetradic
#302195 #95214C #869521 #21956A
square
#302195 #95214C #869521 #21956A
split-complementary
#302195 #956A21 #4C9521
monochromatic
#100B31 #201663 #302195 #402CC7 #6857DA

Accessibility & contrast

On white

11.82
#302195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302195
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302195#FFFFFF#000000##FFFFFF
##3021951.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302195;
/* rgb */ color: rgb(48, 33, 149);
/* oklch */ color: oklch(35.7% 0.177 278.4);
Tailwind
colors: {
  custom: {
    50: '#775fb5',
    500: '#302195',
    950: '#000000',
  },
}
SCSS
$custom: #302195;
$custom-light: #775fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#302195",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 247.759,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35719,
    "c": 0.17704,
    "h": 278.4
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#302195
secondary
#B0BE54
accent
#E741D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302195

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

Preview Lab → · Contrast checker → · Palette generator →

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