#284FA2#284FA2

#284FA2 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.142 H 263.0°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#284FA2
RGBrgb(40, 79, 162)
HSLhsl(221, 60%, 40%)
HSVhsv(221, 75%, 64%)
CMYKcmyk(75.3%, 51.2%, 0%, 36.5%)
CIE-LABlab(35.30, 16.40, -48.95)
CIE-LCHlch(35.30, 51.63, 288.52°)
OKLaboklab(44.79% -0.0173 -0.1407)
OKLCHoklch(44.79% 0.142 263)
XYZxyz(10.1903, 8.6506, 35.3081)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FA2 #A27B28
analogous
#288CA2 #284FA2 #3E28A2
triadic
#284FA2 #A2284F #4FA228
tetradic
#284FA2 #A2288C #A27B28 #28A23E
square
#284FA2 #A2288C #A27B28 #28A23E
split-complementary
#284FA2 #A23E28 #8CA228
monochromatic
#101F40 #1C3771 #284FA2 #3969CE #6A8EDA

Accessibility & contrast

On white

7.69
#284FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#284FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FA2
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FA2#FFFFFF#000000##FFFFFF
##284FA21.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C59A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #284fa2;
/* rgb */ color: rgb(40, 79, 162);
/* oklch */ color: oklch(44.8% 0.142 263.0);
Tailwind
colors: {
  custom: {
    50: '#737fbe',
    500: '#284fa2',
    950: '#000000',
  },
}
SCSS
$custom: #284fa2;
$custom-light: #737fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#284fa2",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 220.82,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4479,
    "c": 0.1418,
    "h": 263
  },
  "luminance": 0.08652
}

Semantic roles & 50–950 ramp

primary
#284FA2
secondary
#C1A365
accent
#B144E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #284FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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