#302795#302795

#302795 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.171 H 277.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#302795
RGBrgb(48, 39, 149)
HSLhsl(245, 59%, 37%)
HSVhsv(245, 74%, 58%)
CMYKcmyk(67.8%, 73.8%, 0%, 41.6%)
CIE-LABlab(24.48, 38.72, -58.68)
CIE-LCHlch(24.48, 70.31, 303.42°)
OKLaboklab(36.56% 0.022 -0.1695)
OKLCHoklch(36.56% 0.171 277.4)
XYZxyz(7.3675, 4.2487, 28.8598)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302795 #8C9527
analogous
#275595 #302795 #672795
triadic
#302795 #953027 #279530
tetradic
#302795 #952755 #8C9527 #279567
square
#302795 #952755 #8C9527 #279567
split-complementary
#302795 #956727 #559527
monochromatic
#110E34 #201A64 #302795 #4034C6 #6A61D6

Accessibility & contrast

On white

11.35
#302795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#302795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302795
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302795#FFFFFF#000000##FFFFFF
##3027951.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302795;
/* rgb */ color: rgb(48, 39, 149);
/* oklch */ color: oklch(36.6% 0.171 277.4);
Tailwind
colors: {
  custom: {
    50: '#7763b5',
    500: '#302795',
    950: '#000000',
  },
}
SCSS
$custom: #302795;
$custom-light: #7763b5;
$custom-dark: #000000;
JSON
{
  "hex": "#302795",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 244.909,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36559,
    "c": 0.17092,
    "h": 277.4
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#302795
secondary
#B3BB5D
accent
#E246D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302795

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

Preview Lab → · Contrast checker → · Palette generator →

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