#284E7C#284E7C

#284E7C is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 41.9% C 0.089 H 254.4°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#284E7C
RGBrgb(40, 78, 124)
HSLhsl(213, 51%, 32%)
HSVhsv(213, 68%, 49%)
CMYKcmyk(67.7%, 37.1%, 0%, 51.4%)
CIE-LABlab(32.60, 2.43, -30.09)
CIE-LCHlch(32.60, 30.19, 274.62°)
OKLaboklab(41.93% -0.0238 -0.0854)
OKLCHoklch(41.93% 0.089 254.4)
XYZxyz(7.2362, 7.3544, 20.1031)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E7C #7C5628
analogous
#28787C #284E7C #2C287C
triadic
#284E7C #7C284E #4E7C28
tetradic
#284E7C #7C2878 #7C5628 #287C2C
square
#284E7C #7C2878 #7C5628 #287C2C
split-complementary
#284E7C #7C2C28 #787C28
monochromatic
#0A141F #19314E #284E7C #376BAA #568AC8

Accessibility & contrast

On white

8.50
#284E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#284E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E7C
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E7C#FFFFFF#000000##FFFFFF
##284E7C1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A517E
Deuteranopia (green-blind)
#2E497B
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284e7c;
/* rgb */ color: rgb(40, 78, 124);
/* oklch */ color: oklch(41.9% 0.089 254.4);
Tailwind
colors: {
  custom: {
    50: '#6b7fa2',
    500: '#284e7c',
    950: '#000000',
  },
}
SCSS
$custom: #284e7c;
$custom-light: #6b7fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#284e7c",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 212.857,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.08864,
    "h": 254.4
  },
  "luminance": 0.07355
}

Semantic roles & 50–950 ramp

primary
#284E7C
secondary
#AD8452
accent
#9B4DDB
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #284E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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