#302495#302495

#302495 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.174 H 277.9°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#302495
RGBrgb(48, 36, 149)
HSLhsl(246, 61%, 36%)
HSVhsv(246, 76%, 58%)
CMYKcmyk(67.8%, 75.8%, 0%, 41.6%)
CIE-LABlab(23.87, 40.43, -59.69)
CIE-LCHlch(23.87, 72.09, 304.11°)
OKLaboklab(36.13% 0.0239 -0.1724)
OKLCHoklch(36.13% 0.174 277.9)
XYZxyz(7.2729, 4.0594, 28.8282)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302495 #899524
analogous
#245195 #302495 #692495
triadic
#302495 #953024 #249530
tetradic
#302495 #952451 #899524 #249569
square
#302495 #952451 #899524 #249569
split-complementary
#302495 #956924 #519524
monochromatic
#100C32 #201864 #302495 #4030C6 #695CD8

Accessibility & contrast

On white

11.59
#302495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302495
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302495#FFFFFF#000000##FFFFFF
##3024951.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302495;
/* rgb */ color: rgb(48, 36, 149);
/* oklch */ color: oklch(36.1% 0.174 277.9);
Tailwind
colors: {
  custom: {
    50: '#7761b5',
    500: '#302495',
    950: '#000000',
  },
}
SCSS
$custom: #302495;
$custom-light: #7761b5;
$custom-dark: #000000;
JSON
{
  "hex": "#302495",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 246.372,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36127,
    "c": 0.17405,
    "h": 277.9
  },
  "luminance": 0.0406
}

Semantic roles & 50–950 ramp

primary
#302495
secondary
#B2BC59
accent
#E444D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302495

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

Preview Lab → · Contrast checker → · Palette generator →

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