#303040#303040

#303040 is a dark, muted blue. Relative luminance 0.031; OKLCH L 31.6% C 0.028 H 284.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#303040
RGBrgb(48, 48, 64)
HSLhsl(240, 14%, 22%)
HSVhsv(240, 25%, 25%)
CMYKcmyk(25%, 25%, 0%, 74.9%)
CIE-LABlab(20.49, 4.19, -10.03)
CIE-LCHlch(20.49, 10.87, 292.68°)
OKLaboklab(31.61% 0.0072 -0.0275)
OKLCHoklch(31.61% 0.028 284.7)
XYZxyz(3.2011, 3.1124, 5.2816)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303040 #404030
analogous
#303840 #303040 #383040
triadic
#303040 #403030 #304030
tetradic
#303040 #403038 #404030 #304038
square
#303040 #403038 #404030 #304038
split-complementary
#303040 #403830 #384030
monochromatic
#0D0D11 #16161D #303040 #4A4A63 #646486

Accessibility & contrast

On white

12.94
#303040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#303040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303040
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303040#FFFFFF#000000##FFFFFF
##3030401.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3241
Deuteranopia (green-blind)
#2B3140
Tritanopia (blue-blind)
#2C3335
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #303040;
/* rgb */ color: rgb(48, 48, 64);
/* oklch */ color: oklch(31.6% 0.028 284.7);
Tailwind
colors: {
  custom: {
    50: '#686874',
    500: '#303040',
    950: '#000000',
  },
}
SCSS
$custom: #303040;
$custom-light: #686874;
$custom-dark: #000000;
JSON
{
  "hex": "#303040",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 64
  },
  "hsl": {
    "h": 240,
    "s": 14.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31612,
    "c": 0.02841,
    "h": 284.7
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#303040
secondary
#70705C
accent
#B771B7
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #303040

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

Preview Lab → · Contrast checker → · Palette generator →

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