#302BA5#302BA5

#302BA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.187 H 275.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#302BA5
RGBrgb(48, 43, 165)
HSLhsl(242, 59%, 41%)
HSVhsv(242, 74%, 65%)
CMYKcmyk(70.9%, 73.9%, 0%, 35.3%)
CIE-LABlab(26.94, 41.73, -64.39)
CIE-LCHlch(26.94, 76.73, 302.95°)
OKLaboklab(38.8% 0.0165 -0.1862)
OKLCHoklch(38.8% 0.187 275.1)
XYZxyz(8.8721, 5.0719, 36.1014)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BA5 #A0A52B
analogous
#2B63A5 #302BA5 #6D2BA5
triadic
#302BA5 #A5302B #2BA530
tetradic
#302BA5 #A52B63 #A0A52B #2BA56D
square
#302BA5 #A52B63 #A0A52B #2BA56D
split-complementary
#302BA5 #A56D2B #63A52B
monochromatic
#141244 #221E74 #302BA5 #4640CD #7571DA

Accessibility & contrast

On white

10.42
#302BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#302BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BA5
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BA5#FFFFFF#000000##FFFFFF
##302BA51.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302ba5;
/* rgb */ color: rgb(48, 43, 165);
/* oklch */ color: oklch(38.8% 0.187 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a66c1',
    500: '#302ba5',
    950: '#000000',
  },
}
SCSS
$custom: #302ba5;
$custom-light: #7a66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#302ba5",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 242.459,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.388,
    "c": 0.1869,
    "h": 275.1
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#302BA5
secondary
#BEC16B
accent
#E246DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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