#284FAB#284FAB

#284FAB is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.154 H 263.9°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#284FAB
RGBrgb(40, 79, 171)
HSLhsl(222, 62%, 41%)
HSVhsv(222, 77%, 67%)
CMYKcmyk(76.6%, 53.8%, 0%, 32.9%)
CIE-LABlab(35.95, 19.88, -53.28)
CIE-LCHlch(35.95, 56.87, 290.46°)
OKLaboklab(45.49% -0.0163 -0.1535)
OKLCHoklch(45.49% 0.154 263.9)
XYZxyz(11.0191, 8.9821, 39.6732)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FAB #AB8428
analogous
#2891AB #284FAB #4328AB
triadic
#284FAB #AB284F #4FAB28
tetradic
#284FAB #AB2891 #AB8428 #28AB43
square
#284FAB #AB2891 #AB8428 #28AB43
split-complementary
#284FAB #AB4328 #91AB28
monochromatic
#112148 #1C3879 #284FAB #3E6AD2 #7091DE

Accessibility & contrast

On white

7.51
#284FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#284FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FAB
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FAB#FFFFFF#000000##FFFFFF
##284FAB1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075BAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #284fab;
/* rgb */ color: rgb(40, 79, 171);
/* oklch */ color: oklch(45.5% 0.154 263.9);
Tailwind
colors: {
  custom: {
    50: '#767fc5',
    500: '#284fab',
    950: '#000000',
  },
}
SCSS
$custom: #284fab;
$custom-light: #767fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#284fab",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 222.137,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45488,
    "c": 0.15435,
    "h": 263.9
  },
  "luminance": 0.08983
}

Semantic roles & 50–950 ramp

primary
#284FAB
secondary
#C4AA6A
accent
#B543E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #284FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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