#302DA5#302DA5

#302DA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.185 H 274.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#302DA5
RGBrgb(48, 45, 165)
HSLhsl(242, 57%, 41%)
HSVhsv(242, 73%, 65%)
CMYKcmyk(70.9%, 72.7%, 0%, 35.3%)
CIE-LABlab(27.36, 40.57, -63.71)
CIE-LCHlch(27.36, 75.53, 302.49°)
OKLaboklab(39.1% 0.0153 -0.1842)
OKLCHoklch(39.1% 0.185 274.8)
XYZxyz(8.9466, 5.2209, 36.1263)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DA5 #A2A52D
analogous
#2D66A5 #302DA5 #6C2DA5
triadic
#302DA5 #A5302D #2DA530
tetradic
#302DA5 #A52D66 #A2A52D #2DA56C
square
#302DA5 #A52D66 #A2A52D #2DA56C
split-complementary
#302DA5 #A56C2D #66A52D
monochromatic
#141345 #222075 #302DA5 #4743CC #7673D9

Accessibility & contrast

On white

10.27
#302DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#302DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DA5
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DA5#FFFFFF#000000##FFFFFF
##302DA51.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302da5;
/* rgb */ color: rgb(48, 45, 165);
/* oklch */ color: oklch(39.1% 0.185 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a67c1',
    500: '#302da5',
    950: '#000000',
  },
}
SCSS
$custom: #302da5;
$custom-light: #7a67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#302da5",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 241.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39097,
    "c": 0.18482,
    "h": 274.8
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

primary
#302DA5
secondary
#BEC16D
accent
#E047DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302DA5

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

Preview Lab → · Contrast checker → · Palette generator →

#302DA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva