#284F8B#284F8B

#284F8B is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.109 H 258.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#284F8B
RGBrgb(40, 79, 139)
HSLhsl(216, 55%, 35%)
HSVhsv(216, 71%, 55%)
CMYKcmyk(71.2%, 43.2%, 0%, 45.5%)
CIE-LABlab(33.79, 7.49, -37.45)
CIE-LCHlch(33.79, 38.20, 281.31°)
OKLaboklab(43.14% -0.0212 -0.1069)
OKLCHoklch(43.14% 0.109 258.8)
XYZxyz(8.3296, 7.9063, 25.5082)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F8B #8B6428
analogous
#28808B #284F8B #33288B
triadic
#284F8B #8B284F #4F8B28
tetradic
#284F8B #8B2880 #8B6428 #288B33
square
#284F8B #8B2880 #8B6428 #288B33
split-complementary
#284F8B #8B3328 #808B28
monochromatic
#0D192C #1A345B #284F8B #366ABB #5D8AD0

Accessibility & contrast

On white

8.14
#284F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#284F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F8B
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F8B#FFFFFF#000000##FFFFFF
##284F8B1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548D
Deuteranopia (green-blind)
#224B8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284f8b;
/* rgb */ color: rgb(40, 79, 139);
/* oklch */ color: oklch(43.1% 0.109 258.8);
Tailwind
colors: {
  custom: {
    50: '#6e7fad',
    500: '#284f8b',
    950: '#000000',
  },
}
SCSS
$custom: #284f8b;
$custom-light: #6e7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#284f8b",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 139
  },
  "hsl": {
    "h": 216.364,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43139,
    "c": 0.10901,
    "h": 258.8
  },
  "luminance": 0.07907
}

Semantic roles & 50–950 ramp

primary
#284F8B
secondary
#B69159
accent
#A449DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #284F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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