#284A8D#284A8D

#284A8D is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.118 H 262.3°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#284A8D
RGBrgb(40, 74, 141)
HSLhsl(220, 56%, 35%)
HSVhsv(220, 72%, 55%)
CMYKcmyk(71.6%, 47.5%, 0%, 44.7%)
CIE-LABlab(32.42, 11.61, -40.87)
CIE-LCHlch(32.42, 42.49, 285.86°)
OKLaboklab(42.12% -0.0158 -0.1171)
OKLCHoklch(42.12% 0.118 262.3)
XYZxyz(8.1299, 7.2709, 26.1691)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A8D #8D6B28
analogous
#287C8D #284A8D #38288D
triadic
#284A8D #8D284A #4A8D28
tetradic
#284A8D #8D287C #8D6B28 #288D38
square
#284A8D #8D287C #8D6B28 #288D38
split-complementary
#284A8D #8D3828 #7C8D28
monochromatic
#0D182E #1A315D #284A8D #3663BD #5E85D1

Accessibility & contrast

On white

8.56
#284A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#284A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A8D
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A8D#FFFFFF#000000##FFFFFF
##284A8D1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#12488C
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #284a8d;
/* rgb */ color: rgb(40, 74, 141);
/* oklch */ color: oklch(42.1% 0.118 262.3);
Tailwind
colors: {
  custom: {
    50: '#6f7caf',
    500: '#284a8d',
    950: '#000000',
  },
}
SCSS
$custom: #284a8d;
$custom-light: #6f7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#284a8d",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 219.802,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42123,
    "c": 0.11814,
    "h": 262.3
  },
  "luminance": 0.07272
}

Semantic roles & 50–950 ramp

primary
#284A8D
secondary
#B7985A
accent
#AC49DF
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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