#284A7E#284A7E

#284A7E is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.1% C 0.096 H 258.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#284A7E
RGBrgb(40, 74, 126)
HSLhsl(216, 52%, 33%)
HSVhsv(216, 68%, 49%)
CMYKcmyk(68.3%, 41.3%, 0%, 50.6%)
CIE-LABlab(31.47, 5.84, -33.12)
CIE-LCHlch(31.47, 33.63, 280.00°)
OKLaboklab(41.09% -0.0189 -0.0943)
OKLCHoklch(41.09% 0.096 258.7)
XYZxyz(7.0884, 6.8543, 20.6841)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A7E #7E5C28
analogous
#28757E #284A7E #31287E
triadic
#284A7E #7E284A #4A7E28
tetradic
#284A7E #7E2875 #7E5C28 #287E31
square
#284A7E #7E2875 #7E5C28 #287E31
split-complementary
#284A7E #7E3128 #757E28
monochromatic
#0B1321 #192F50 #284A7E #3765AC #5784CA

Accessibility & contrast

On white

8.86
#284A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#284A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A7E
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A7E#FFFFFF#000000##FFFFFF
##284A7E1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E80
Deuteranopia (green-blind)
#26467D
Tritanopia (blue-blind)
#00565E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #284a7e;
/* rgb */ color: rgb(40, 74, 126);
/* oklch */ color: oklch(41.1% 0.096 258.7);
Tailwind
colors: {
  custom: {
    50: '#6c7ca4',
    500: '#284a7e',
    950: '#000000',
  },
}
SCSS
$custom: #284a7e;
$custom-light: #6c7ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#284a7e",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 126
  },
  "hsl": {
    "h": 216.279,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4109,
    "c": 0.09618,
    "h": 258.7
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

primary
#284A7E
secondary
#AF8A53
accent
#A34DDB
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #284A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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