#284F94#284F94

#284F94 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.122 H 260.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#284F94
RGBrgb(40, 79, 148)
HSLhsl(218, 57%, 37%)
HSVhsv(218, 73%, 58%)
CMYKcmyk(73%, 46.6%, 0%, 42%)
CIE-LABlab(34.36, 10.97, -42.03)
CIE-LCHlch(34.36, 43.44, 284.63°)
OKLaboklab(43.76% -0.0194 -0.1204)
OKLCHoklch(43.76% 0.122 260.9)
XYZxyz(9.0144, 8.1802, 29.1151)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F94 #946D28
analogous
#288594 #284F94 #372894
triadic
#284F94 #94284F #4F9428
tetradic
#284F94 #942885 #946D28 #289437
square
#284F94 #942885 #946D28 #289437
split-complementary
#284F94 #943728 #859428
monochromatic
#0E1C34 #1B3564 #284F94 #3569C4 #628BD5

Accessibility & contrast

On white

7.97
#284F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#284F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F94
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F94#FFFFFF#000000##FFFFFF
##284F941.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5697
Deuteranopia (green-blind)
#154C93
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284f94;
/* rgb */ color: rgb(40, 79, 148);
/* oklch */ color: oklch(43.8% 0.122 260.9);
Tailwind
colors: {
  custom: {
    50: '#707fb4',
    500: '#284f94',
    950: '#000000',
  },
}
SCSS
$custom: #284f94;
$custom-light: #707fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#284f94",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 148
  },
  "hsl": {
    "h": 218.333,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43761,
    "c": 0.12194,
    "h": 260.9
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#284F94
secondary
#BA995E
accent
#A947E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #284F94

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

Preview Lab → · Contrast checker → · Palette generator →

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