#302D80#302D80

#302D80 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.136 H 278.6°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#302D80
RGBrgb(48, 45, 128)
HSLhsl(242, 48%, 34%)
HSVhsv(242, 65%, 50%)
CMYKcmyk(62.5%, 64.8%, 0%, 49.8%)
CIE-LABlab(23.88, 27.77, -46.58)
CIE-LCHlch(23.88, 54.23, 300.80°)
OKLaboklab(35.52% 0.0202 -0.134)
OKLCHoklch(35.52% 0.136 278.6)
XYZxyz(6.0523, 4.0632, 20.8832)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D80 #7D802D
analogous
#2D5480 #302D80 #5A2D80
triadic
#302D80 #80302D #2D8030
tetradic
#302D80 #802D54 #7D802D #2D805A
square
#302D80 #802D54 #7D802D #2D805A
split-complementary
#302D80 #805A2D #54802D
monochromatic
#0E0D25 #1F1D53 #302D80 #413DAD #6460C7

Accessibility & contrast

On white

11.58
#302D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D80
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D80#FFFFFF#000000##FFFFFF
##302D801.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302d80;
/* rgb */ color: rgb(48, 45, 128);
/* oklch */ color: oklch(35.5% 0.136 278.6);
Tailwind
colors: {
  custom: {
    50: '#7266a6',
    500: '#302d80',
    950: '#000000',
  },
}
SCSS
$custom: #302d80;
$custom-light: #7266a6;
$custom-dark: #000000;
JSON
{
  "hex": "#302d80",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 242.169,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35524,
    "c": 0.13555,
    "h": 278.6
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#302D80
secondary
#ABAE5B
accent
#D850D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302D80

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

Preview Lab → · Contrast checker → · Palette generator →

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