#302A50#302A50

#302A50 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.067 H 289.2°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#302A50
RGBrgb(48, 42, 80)
HSLhsl(249, 31%, 24%)
HSVhsv(249, 48%, 31%)
CMYKcmyk(40%, 47.5%, 0%, 68.6%)
CIE-LABlab(19.49, 13.29, -22.43)
CIE-LCHlch(19.49, 26.07, 300.65°)
OKLaboklab(31.12% 0.0219 -0.0631)
OKLCHoklch(31.12% 0.067 289.2)
XYZxyz(3.4945, 2.8634, 7.9564)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A50 #4A502A
analogous
#2A3750 #302A50 #432A50
triadic
#302A50 #50302A #2A5030
tetradic
#302A50 #502A37 #4A502A #2A5043
square
#302A50 #502A37 #4A502A #2A5043
split-complementary
#302A50 #50432A #37502A
monochromatic
#0C0B14 #181528 #302A50 #483F78 #6054A0

Accessibility & contrast

On white

13.35
#302A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#302A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A50
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A50#FFFFFF#000000##FFFFFF
##302A501.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3051
Deuteranopia (green-blind)
#1D2E4F
Tritanopia (blue-blind)
#283139
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #302a50;
/* rgb */ color: rgb(48, 42, 80);
/* oklch */ color: oklch(31.1% 0.067 289.2);
Tailwind
colors: {
  custom: {
    50: '#6a6381',
    500: '#302a50',
    950: '#000000',
  },
}
SCSS
$custom: #302a50;
$custom-light: #6a6381;
$custom-dark: #000000;
JSON
{
  "hex": "#302a50",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 80
  },
  "hsl": {
    "h": 249.474,
    "s": 31.148,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.06683,
    "h": 289.2
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#302A50
secondary
#7B8254
accent
#C760B7
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #302A50

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

Preview Lab → · Contrast checker → · Palette generator →

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