#302EB3#302EB3

#302EB3 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.7% C 0.201 H 273.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#302EB3
RGBrgb(48, 46, 179)
HSLhsl(241, 59%, 44%)
HSVhsv(241, 74%, 70%)
CMYKcmyk(73.2%, 74.3%, 0%, 29.8%)
CIE-LABlab(28.99, 44.67, -69.41)
CIE-LCHlch(28.99, 82.54, 302.76°)
OKLaboklab(40.69% 0.0123 -0.2008)
OKLCHoklch(40.69% 0.201 273.5)
XYZxyz(10.3299, 5.8360, 43.2211)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EB3 #B1B32E
analogous
#2E6FB3 #302EB3 #732EB3
triadic
#302EB3 #B3302E #2EB330
tetradic
#302EB3 #B32E6F #B1B32E #2EB373
square
#302EB3 #B32E6F #B1B32E #2EB373
split-complementary
#302EB3 #B3732E #6FB32E
monochromatic
#161552 #232182 #302EB3 #4F4DD1 #7F7EDE

Accessibility & contrast

On white

9.69
#302EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#302EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EB3
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EB3#FFFFFF#000000##FFFFFF
##302EB31.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302eb3;
/* rgb */ color: rgb(48, 46, 179);
/* oklch */ color: oklch(40.7% 0.201 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d68cb',
    500: '#302eb3',
    950: '#000000',
  },
}
SCSS
$custom: #302eb3;
$custom-light: #7d68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#302eb3",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 240.902,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40693,
    "c": 0.20118,
    "h": 273.5
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#302EB3
secondary
#C5C676
accent
#E246E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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