#284AAF#284AAF

#284AAF is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.8% C 0.166 H 265.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#284AAF
RGBrgb(40, 74, 175)
HSLhsl(225, 63%, 42%)
HSVhsv(225, 77%, 69%)
CMYKcmyk(77.1%, 57.7%, 0%, 31.4%)
CIE-LABlab(34.89, 24.75, -57.38)
CIE-LCHlch(34.89, 62.49, 293.33°)
OKLaboklab(44.78% -0.0123 -0.1656)
OKLCHoklch(44.78% 0.166 265.8)
XYZxyz(11.0590, 8.4426, 41.5959)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284AAF #AF8D28
analogous
#288EAF #284AAF #4A28AF
triadic
#284AAF #AF284A #4AAF28
tetradic
#284AAF #AF288E #AF8D28 #28AF4A
square
#284AAF #AF288E #AF8D28 #28AF4A
split-complementary
#284AAF #AF4A28 #8EAF28
monochromatic
#11204B #1D357D #284AAF #4166D4 #738EDF

Accessibility & contrast

On white

7.81
#284AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#284AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284AAF
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284AAF#FFFFFF#000000##FFFFFF
##284AAF1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284aaf;
/* rgb */ color: rgb(40, 74, 175);
/* oklch */ color: oklch(44.8% 0.166 265.8);
Tailwind
colors: {
  custom: {
    50: '#777cc8',
    500: '#284aaf',
    950: '#000000',
  },
}
SCSS
$custom: #284aaf;
$custom-light: #777cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#284aaf",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 224.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44783,
    "c": 0.16608,
    "h": 265.8
  },
  "luminance": 0.08444
}

Semantic roles & 50–950 ramp

primary
#284AAF
secondary
#C6B06D
accent
#BD42E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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