#284BAF#284BAF

#284BAF is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.165 H 265.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#284BAF
RGBrgb(40, 75, 175)
HSLhsl(224, 63%, 42%)
HSVhsv(224, 77%, 69%)
CMYKcmyk(77.1%, 57.1%, 0%, 31.4%)
CIE-LABlab(35.16, 24.09, -56.94)
CIE-LCHlch(35.16, 61.83, 292.93°)
OKLaboklab(44.99% -0.013 -0.1643)
OKLCHoklch(44.99% 0.165 265.5)
XYZxyz(11.1263, 8.5772, 41.6183)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284BAF #AF8C28
analogous
#288FAF #284BAF #4828AF
triadic
#284BAF #AF284B #4BAF28
tetradic
#284BAF #AF288F #AF8C28 #28AF48
square
#284BAF #AF288F #AF8C28 #28AF48
split-complementary
#284BAF #AF4828 #8FAF28
monochromatic
#11204B #1D367D #284BAF #4167D4 #738FDF

Accessibility & contrast

On white

7.73
#284BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#284BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284BAF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284BAF#FFFFFF#000000##FFFFFF
##284BAF1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #284baf;
/* rgb */ color: rgb(40, 75, 175);
/* oklch */ color: oklch(45.0% 0.165 265.5);
Tailwind
colors: {
  custom: {
    50: '#777cc8',
    500: '#284baf',
    950: '#000000',
  },
}
SCSS
$custom: #284baf;
$custom-light: #777cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#284baf",
  "rgb": {
    "r": 40,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 224.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.16484,
    "h": 265.5
  },
  "luminance": 0.08578
}

Semantic roles & 50–950 ramp

primary
#284BAF
secondary
#C6AF6D
accent
#BB42E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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