#284E7B#284E7B

#284E7B is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.9% C 0.087 H 254.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#284E7B
RGBrgb(40, 78, 123)
HSLhsl(213, 51%, 32%)
HSVhsv(213, 67%, 48%)
CMYKcmyk(67.5%, 36.6%, 0%, 51.8%)
CIE-LABlab(32.55, 2.05, -29.56)
CIE-LCHlch(32.55, 29.63, 273.97°)
OKLaboklab(41.87% -0.0241 -0.0838)
OKLCHoklch(41.87% 0.087 254)
XYZxyz(7.1733, 7.3293, 19.7717)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E7B #7B5528
analogous
#28787B #284E7B #2C287B
triadic
#284E7B #7B284E #4E7B28
tetradic
#284E7B #7B2878 #7B5528 #287B2C
square
#284E7B #7B2878 #7B5528 #287B2C
split-complementary
#284E7B #7B2C28 #787B28
monochromatic
#0A131F #19314D #284E7B #376BA9 #568AC8

Accessibility & contrast

On white

8.52
#284E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284E7B
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E7B#FFFFFF#000000##FFFFFF
##284E7B1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A517D
Deuteranopia (green-blind)
#2F497A
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284e7b;
/* rgb */ color: rgb(40, 78, 123);
/* oklch */ color: oklch(41.9% 0.087 254.0);
Tailwind
colors: {
  custom: {
    50: '#6b7fa1',
    500: '#284e7b',
    950: '#000000',
  },
}
SCSS
$custom: #284e7b;
$custom-light: #6b7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#284e7b",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 212.53,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41869,
    "c": 0.08722,
    "h": 254
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#284E7B
secondary
#AD8352
accent
#9A4DDA
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #284E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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