#303151#303151

#303151 is a dark, muted blue. Relative luminance 0.034; OKLCH L 32.8% C 0.056 H 281.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#303151
RGBrgb(48, 49, 81)
HSLhsl(238, 26%, 25%)
HSVhsv(238, 41%, 32%)
CMYKcmyk(40.7%, 39.5%, 0%, 68.2%)
CIE-LABlab(21.65, 8.72, -19.69)
CIE-LCHlch(21.65, 21.54, 293.88°)
OKLaboklab(32.79% 0.0112 -0.0552)
OKLCHoklch(32.79% 0.056 281.5)
XYZxyz(3.8020, 3.4189, 8.2426)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303151 #515030
analogous
#304151 #303151 #3F3051
triadic
#303151 #513031 #315130
tetradic
#303151 #513041 #515030 #30513F
square
#303151 #513041 #515030 #30513F
split-complementary
#303151 #513F30 #415130
monochromatic
#0B0C13 #191A2B #303151 #474877 #5E5F9E

Accessibility & contrast

On white

12.47
#303151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#303151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303151
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303151#FFFFFF#000000##FFFFFF
##3031511.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273552
Deuteranopia (green-blind)
#253350
Tritanopia (blue-blind)
#27373D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #303151;
/* rgb */ color: rgb(48, 49, 81);
/* oklch */ color: oklch(32.8% 0.056 281.5);
Tailwind
colors: {
  custom: {
    50: '#6a6982',
    500: '#303151',
    950: '#000000',
  },
}
SCSS
$custom: #303151;
$custom-light: #6a6982;
$custom-dark: #000000;
JSON
{
  "hex": "#303151",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 238.182,
    "s": 25.581,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32787,
    "c": 0.05628,
    "h": 281.5
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#303151
secondary
#82815B
accent
#BF66C2
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #303151

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

Preview Lab → · Contrast checker → · Palette generator →

#303151 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva