#305040#305040

#305040 is a dark, muted teal. Relative luminance 0.067; OKLCH L 40.1% C 0.047 H 161.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#305040
RGBrgb(48, 80, 64)
HSLhsl(150, 25%, 25%)
HSVhsv(150, 40%, 31%)
CMYKcmyk(40%, 0%, 20%, 68.6%)
CIE-LABlab(31.20, -15.93, 5.75)
CIE-LCHlch(31.20, 16.94, 160.14°)
OKLaboklab(40.12% -0.0444 0.0148)
OKLCHoklch(40.12% 0.047 161.6)
XYZxyz(5.0127, 6.7356, 5.8855)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305040 #503040
analogous
#305030 #305040 #305050
triadic
#305040 #403050 #504030
tetradic
#305040 #303050 #503040 #505030
square
#305040 #303050 #503040 #505030
split-complementary
#305040 #503050 #503030
monochromatic
#0B130F #192A21 #305040 #47765F #5E9C7D

Accessibility & contrast

On white

8.95
#305040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#305040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305040
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305040#FFFFFF#000000##FFFFFF
##3050401.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4C3F
Deuteranopia (green-blind)
#4A4841
Tritanopia (blue-blind)
#29504B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #305040;
/* rgb */ color: rgb(48, 80, 64);
/* oklch */ color: oklch(40.1% 0.047 161.6);
Tailwind
colors: {
  custom: {
    50: '#6a8174',
    500: '#305040',
    950: '#000000',
  },
}
SCSS
$custom: #305040;
$custom-light: #6a8174;
$custom-dark: #000000;
JSON
{
  "hex": "#305040",
  "rgb": {
    "r": 48,
    "g": 80,
    "b": 64
  },
  "hsl": {
    "h": 150,
    "s": 25,
    "l": 25.098
  },
  "oklch": {
    "l": 0.40115,
    "c": 0.0468,
    "h": 161.6
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#305040
secondary
#815B6E
accent
#6694C1
background
#F6F7F7
surface
#EBEEED
border
#C6C9C8
text
#060A08
muted
#7A7C7B

Preview Lab

Preview with #305040

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

Preview Lab → · Contrast checker → · Palette generator →

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