#284ABA#284ABA

#284ABA is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.181 H 266.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#284ABA
RGBrgb(40, 74, 186)
HSLhsl(226, 65%, 44%)
HSVhsv(226, 78%, 73%)
CMYKcmyk(78.5%, 60.2%, 0%, 27.1%)
CIE-LABlab(35.78, 28.93, -62.44)
CIE-LCHlch(35.78, 68.81, 294.86°)
OKLaboklab(45.73% -0.0119 -0.1805)
OKLCHoklch(45.73% 0.181 266.2)
XYZxyz(12.1837, 8.8924, 47.5191)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284ABA #BA9828
analogous
#2893BA #284ABA #4F28BA
triadic
#284ABA #BA284A #4ABA28
tetradic
#284ABA #BA2893 #BA9828 #28BA4F
square
#284ABA #BA2893 #BA9828 #28BA4F
split-complementary
#284ABA #BA4F28 #93BA28
monochromatic
#122255 #1D3688 #284ABA #4869D8 #7A92E2

Accessibility & contrast

On white

7.56
#284ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#284ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284ABA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284ABA#FFFFFF#000000##FFFFFF
##284ABA1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284aba;
/* rgb */ color: rgb(40, 74, 186);
/* oklch */ color: oklch(45.7% 0.181 266.2);
Tailwind
colors: {
  custom: {
    50: '#797cd0',
    500: '#284aba',
    950: '#000000',
  },
}
SCSS
$custom: #284aba;
$custom-light: #797cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#284aba",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 226.027,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45725,
    "c": 0.18086,
    "h": 266.2
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#284ABA
secondary
#CAB673
accent
#C140E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #284ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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