#302B87#302B87

#302B87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.148 H 278.3°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#302B87
RGBrgb(48, 43, 135)
HSLhsl(243, 52%, 35%)
HSVhsv(243, 68%, 53%)
CMYKcmyk(64.4%, 68.1%, 0%, 47.1%)
CIE-LABlab(24.02, 31.51, -50.75)
CIE-LCHlch(24.02, 59.74, 301.84°)
OKLaboklab(35.82% 0.0213 -0.1463)
OKLCHoklch(35.82% 0.148 278.3)
XYZxyz(6.4546, 4.1049, 23.3692)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B87 #82872B
analogous
#2B5487 #302B87 #5E2B87
triadic
#302B87 #87302B #2B8730
tetradic
#302B87 #872B54 #82872B #2B875E
square
#302B87 #872B54 #82872B #2B875E
split-complementary
#302B87 #875E2B #54872B
monochromatic
#0F0D2A #1F1C59 #302B87 #413AB5 #6660CC

Accessibility & contrast

On white

11.53
#302B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302B87
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B87#FFFFFF#000000##FFFFFF
##302B871.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302b87;
/* rgb */ color: rgb(48, 43, 135);
/* oklch */ color: oklch(35.8% 0.148 278.3);
Tailwind
colors: {
  custom: {
    50: '#7365ab',
    500: '#302b87',
    950: '#000000',
  },
}
SCSS
$custom: #302b87;
$custom-light: #7365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302b87",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 243.261,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35816,
    "c": 0.14783,
    "h": 278.3
  },
  "luminance": 0.04105
}

Semantic roles & 50–950 ramp

primary
#302B87
secondary
#AEB25B
accent
#DB4DD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302B87

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

Preview Lab → · Contrast checker → · Palette generator →

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