#284CAF#284CAF

#284CAF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.164 H 265.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#284CAF
RGBrgb(40, 76, 175)
HSLhsl(224, 63%, 42%)
HSVhsv(224, 77%, 69%)
CMYKcmyk(77.1%, 56.6%, 0%, 31.4%)
CIE-LABlab(35.43, 23.42, -56.50)
CIE-LCHlch(35.43, 61.17, 292.51°)
OKLaboklab(45.19% -0.0137 -0.163)
OKLCHoklch(45.19% 0.164 265.2)
XYZxyz(11.1946, 8.7139, 41.6411)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CAF #AF8B28
analogous
#2890AF #284CAF #4828AF
triadic
#284CAF #AF284C #4CAF28
tetradic
#284CAF #AF2890 #AF8B28 #28AF48
square
#284CAF #AF2890 #AF8B28 #28AF48
split-complementary
#284CAF #AF4828 #90AF28
monochromatic
#11214B #1D367D #284CAF #4168D4 #738FDF

Accessibility & contrast

On white

7.66
#284CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#284CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CAF
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CAF#FFFFFF#000000##FFFFFF
##284CAF1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #284caf;
/* rgb */ color: rgb(40, 76, 175);
/* oklch */ color: oklch(45.2% 0.164 265.2);
Tailwind
colors: {
  custom: {
    50: '#777dc8',
    500: '#284caf',
    950: '#000000',
  },
}
SCSS
$custom: #284caf;
$custom-light: #777dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#284caf",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 224,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45189,
    "c": 0.1636,
    "h": 265.2
  },
  "luminance": 0.08715
}

Semantic roles & 50–950 ramp

primary
#284CAF
secondary
#C6AE6D
accent
#BA42E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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