#302695#302695

#302695 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.172 H 277.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#302695
RGBrgb(48, 38, 149)
HSLhsl(245, 59%, 37%)
HSVhsv(245, 74%, 58%)
CMYKcmyk(67.8%, 74.5%, 0%, 41.6%)
CIE-LABlab(24.27, 39.30, -59.02)
CIE-LCHlch(24.27, 70.91, 303.65°)
OKLaboklab(36.41% 0.0227 -0.1705)
OKLCHoklch(36.41% 0.172 277.6)
XYZxyz(7.3351, 4.1839, 28.8490)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302695 #8B9526
analogous
#265495 #302695 #682695
triadic
#302695 #953026 #269530
tetradic
#302695 #952654 #8B9526 #269568
square
#302695 #952654 #8B9526 #269568
split-complementary
#302695 #956826 #549526
monochromatic
#110D33 #201A64 #302695 #4032C6 #6A5FD6

Accessibility & contrast

On white

11.43
#302695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#302695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302695
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302695#FFFFFF#000000##FFFFFF
##3026951.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302695;
/* rgb */ color: rgb(48, 38, 149);
/* oklch */ color: oklch(36.4% 0.172 277.6);
Tailwind
colors: {
  custom: {
    50: '#7762b5',
    500: '#302695',
    950: '#000000',
  },
}
SCSS
$custom: #302695;
$custom-light: #7762b5;
$custom-dark: #000000;
JSON
{
  "hex": "#302695",
  "rgb": {
    "r": 48,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 245.405,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.17198,
    "h": 277.6
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#302695
secondary
#B3BB5B
accent
#E345D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302695

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

Preview Lab → · Contrast checker → · Palette generator →

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