#302D83#302D83

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

Color values

HEX#302D83
RGBrgb(48, 45, 131)
HSLhsl(242, 49%, 35%)
HSVhsv(242, 66%, 51%)
CMYKcmyk(63.4%, 65.6%, 0%, 48.6%)
CIE-LABlab(24.14, 28.83, -48.04)
CIE-LCHlch(24.14, 56.03, 300.96°)
OKLaboklab(35.8% 0.0199 -0.1383)
OKLCHoklch(35.8% 0.14 278.2)
XYZxyz(6.2527, 4.1434, 21.9386)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D83 #80832D
analogous
#2D5583 #302D83 #5B2D83
triadic
#302D83 #83302D #2D8330
tetradic
#302D83 #832D55 #80832D #2D835B
square
#302D83 #832D55 #80832D #2D835B
split-complementary
#302D83 #835B2D #55832D
monochromatic
#0F0E28 #1F1D55 #302D83 #413DB1 #6562C9

Accessibility & contrast

On white

11.48
#302D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#302D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D83
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D83#FFFFFF#000000##FFFFFF
##302D831.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302d83;
/* rgb */ color: rgb(48, 45, 131);
/* oklch */ color: oklch(35.8% 0.140 278.2);
Tailwind
colors: {
  custom: {
    50: '#7266a8',
    500: '#302d83',
    950: '#000000',
  },
}
SCSS
$custom: #302d83;
$custom-light: #7266a8;
$custom-dark: #000000;
JSON
{
  "hex": "#302d83",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 242.093,
    "s": 48.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35796,
    "c": 0.13977,
    "h": 278.2
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#302D83
secondary
#ACAF5C
accent
#D84FD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302D83

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

Preview Lab → · Contrast checker → · Palette generator →

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