#284EBA#284EBA

#284EBA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.176 H 265.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#284EBA
RGBrgb(40, 78, 186)
HSLhsl(224, 65%, 44%)
HSVhsv(224, 78%, 73%)
CMYKcmyk(78.5%, 58.1%, 0%, 27.1%)
CIE-LABlab(36.82, 26.30, -60.73)
CIE-LCHlch(36.82, 66.18, 293.42°)
OKLaboklab(46.51% -0.0145 -0.1754)
OKLCHoklch(46.51% 0.176 265.3)
XYZxyz(12.4593, 9.4436, 47.6110)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284EBA #BA9428
analogous
#2897BA #284EBA #4B28BA
triadic
#284EBA #BA284E #4EBA28
tetradic
#284EBA #BA2897 #BA9428 #28BA4B
square
#284EBA #BA2897 #BA9428 #28BA4B
split-complementary
#284EBA #BA4B28 #97BA28
monochromatic
#122455 #1D3988 #284EBA #486DD8 #7A95E2

Accessibility & contrast

On white

7.27
#284EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#284EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284EBA
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284EBA#FFFFFF#000000##FFFFFF
##284EBA1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #284eba;
/* rgb */ color: rgb(40, 78, 186);
/* oklch */ color: oklch(46.5% 0.176 265.3);
Tailwind
colors: {
  custom: {
    50: '#797fd0',
    500: '#284eba',
    950: '#000000',
  },
}
SCSS
$custom: #284eba;
$custom-light: #797fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#284eba",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 224.384,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46508,
    "c": 0.17599,
    "h": 265.3
  },
  "luminance": 0.09445
}

Semantic roles & 50–950 ramp

primary
#284EBA
secondary
#CAB473
accent
#BC40E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #284EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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