#284E7E#284E7E

#284E7E is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.1% C 0.091 H 255.3°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#284E7E
RGBrgb(40, 78, 126)
HSLhsl(213, 52%, 33%)
HSVhsv(213, 68%, 49%)
CMYKcmyk(68.3%, 38.1%, 0%, 50.6%)
CIE-LABlab(32.71, 3.19, -31.15)
CIE-LCHlch(32.71, 31.32, 275.84°)
OKLaboklab(42.06% -0.0233 -0.0885)
OKLCHoklch(42.06% 0.091 255.3)
XYZxyz(7.3640, 7.4055, 20.7759)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E7E #7E5828
analogous
#28797E #284E7E #2D287E
triadic
#284E7E #7E284E #4E7E28
tetradic
#284E7E #7E2879 #7E5828 #287E2D
square
#284E7E #7E2879 #7E5828 #287E2D
split-complementary
#284E7E #7E2D28 #797E28
monochromatic
#0B1421 #193150 #284E7E #376BAC #578ACA

Accessibility & contrast

On white

8.46
#284E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#284E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E7E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E7E#FFFFFF#000000##FFFFFF
##284E7E1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395180
Deuteranopia (green-blind)
#2D497D
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284e7e;
/* rgb */ color: rgb(40, 78, 126);
/* oklch */ color: oklch(42.1% 0.091 255.3);
Tailwind
colors: {
  custom: {
    50: '#6c7fa3',
    500: '#284e7e',
    950: '#000000',
  },
}
SCSS
$custom: #284e7e;
$custom-light: #6c7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#284e7e",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 213.488,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42055,
    "c": 0.09149,
    "h": 255.3
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

primary
#284E7E
secondary
#AF8653
accent
#9C4DDB
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #284E7E

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

Preview Lab → · Contrast checker → · Palette generator →

#284E7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva