#284F9B#284F9B

#284F9B is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.132 H 262.1°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#284F9B
RGBrgb(40, 79, 155)
HSLhsl(220, 59%, 38%)
HSVhsv(220, 74%, 61%)
CMYKcmyk(74.2%, 49%, 0%, 39.2%)
CIE-LABlab(34.82, 13.68, -45.52)
CIE-LCHlch(34.82, 47.53, 286.73°)
OKLaboklab(44.27% -0.0182 -0.1307)
OKLCHoklch(44.27% 0.132 262.1)
XYZxyz(9.5853, 8.4086, 32.1218)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F9B #9B7428
analogous
#28889B #284F9B #3A289B
triadic
#284F9B #9B284F #4F9B28
tetradic
#284F9B #9B2888 #9B7428 #289B3A
square
#284F9B #9B2888 #9B7428 #289B3A
split-complementary
#284F9B #9B3A28 #889B28
monochromatic
#0F1D3A #1B366A #284F9B #3568CB #668CD7

Accessibility & contrast

On white

7.83
#284F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#284F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F9B
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F9B#FFFFFF#000000##FFFFFF
##284F9B1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25579E
Deuteranopia (green-blind)
#014D99
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284f9b;
/* rgb */ color: rgb(40, 79, 155);
/* oklch */ color: oklch(44.3% 0.132 262.1);
Tailwind
colors: {
  custom: {
    50: '#727fb9',
    500: '#284f9b',
    950: '#000000',
  },
}
SCSS
$custom: #284f9b;
$custom-light: #727fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#284f9b",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 155
  },
  "hsl": {
    "h": 219.652,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44267,
    "c": 0.13192,
    "h": 262.1
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#284F9B
secondary
#BD9E61
accent
#AD46E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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