#40838E#40838E

#40838E is a mid, moderate teal. Relative luminance 0.193; OKLCH L 57.1% C 0.070 H 209.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#40838E
RGBrgb(64, 131, 142)
HSLhsl(188, 38%, 40%)
HSVhsv(188, 55%, 56%)
CMYKcmyk(54.9%, 7.7%, 0%, 44.3%)
CIE-LABlab(51.01, -17.95, -12.42)
CIE-LCHlch(51.01, 21.83, 214.68°)
OKLaboklab(57.07% -0.0607 -0.0343)
OKLCHoklch(57.07% 0.07 209.5)
XYZxyz(15.1112, 19.2742, 28.5099)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40838E #8E4B40
analogous
#408E72 #40838E #405C8E
triadic
#40838E #8E4083 #838E40
tetradic
#40838E #72408E #8E4B40 #5C8E40
square
#40838E #72408E #8E4B40 #5C8E40
split-complementary
#40838E #8E405C #8E7240
monochromatic
#1A353A #2D5C64 #40838E #58A7B4 #82BDC7

Accessibility & contrast

On white

4.33
#40838E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#40838E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40838E
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40838E#FFFFFF#000000##000000
##40838E1.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#797F8F
Deuteranopia (green-blind)
#6D768E
Tritanopia (blue-blind)
#008886
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #40838e;
/* rgb */ color: rgb(64, 131, 142);
/* oklch */ color: oklch(57.1% 0.070 209.5);
Tailwind
colors: {
  custom: {
    50: '#7ca7af',
    500: '#40838e',
    950: '#000000',
  },
}
SCSS
$custom: #40838e;
$custom-light: #7ca7af;
$custom-dark: #000000;
JSON
{
  "hex": "#40838e",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 142
  },
  "hsl": {
    "h": 188.462,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5707,
    "c": 0.06977,
    "h": 209.5
  },
  "luminance": 0.19276
}

Semantic roles & 50–950 ramp

primary
#40838E
secondary
#B18179
accent
#6A5ACE
background
#F7FAFA
surface
#EEF4F4
border
#C9CECE
text
#0A0F10
muted
#7C7F7F

Preview Lab

Preview with #40838E

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

Preview Lab → · Contrast checker → · Palette generator →

#40838E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva