#284B8D#284B8D

#284B8D is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.4% C 0.117 H 261.7°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#284B8D
RGBrgb(40, 75, 141)
HSLhsl(219, 56%, 35%)
HSVhsv(219, 72%, 55%)
CMYKcmyk(71.6%, 46.8%, 0%, 44.7%)
CIE-LABlab(32.71, 10.94, -40.40)
CIE-LCHlch(32.71, 41.85, 285.15°)
OKLaboklab(42.35% -0.0168 -0.1156)
OKLCHoklch(42.35% 0.117 261.7)
XYZxyz(8.1972, 7.4055, 26.1915)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284B8D #8D6A28
analogous
#287D8D #284B8D #37288D
triadic
#284B8D #8D284B #4B8D28
tetradic
#284B8D #8D287D #8D6A28 #288D37
square
#284B8D #8D287D #8D6A28 #288D37
split-complementary
#284B8D #8D3728 #7D8D28
monochromatic
#0D182E #1A325D #284B8D #3664BD #5E86D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284B8D#FFFFFF#000000##FFFFFF
##284B8D1.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)
#2A528F
Deuteranopia (green-blind)
#15498C
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284b8d;
/* rgb */ color: rgb(40, 75, 141);
/* oklch */ color: oklch(42.4% 0.117 261.7);
Tailwind
colors: {
  custom: {
    50: '#6f7caf',
    500: '#284b8d',
    950: '#000000',
  },
}
SCSS
$custom: #284b8d;
$custom-light: #6f7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#284b8d",
  "rgb": {
    "r": 40,
    "g": 75,
    "b": 141
  },
  "hsl": {
    "h": 219.208,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42351,
    "c": 0.11686,
    "h": 261.7
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

primary
#284B8D
secondary
#B7975A
accent
#AB49DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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