#284CBA#284CBA

#284CBA is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.178 H 265.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#284CBA
RGBrgb(40, 76, 186)
HSLhsl(225, 65%, 44%)
HSVhsv(225, 78%, 73%)
CMYKcmyk(78.5%, 59.1%, 0%, 27.1%)
CIE-LABlab(36.30, 27.62, -61.58)
CIE-LCHlch(36.30, 67.49, 294.15°)
OKLaboklab(46.11% -0.0132 -0.1779)
OKLCHoklch(46.11% 0.178 265.8)
XYZxyz(12.3193, 9.1638, 47.5644)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CBA #BA9628
analogous
#2895BA #284CBA #4D28BA
triadic
#284CBA #BA284C #4CBA28
tetradic
#284CBA #BA2895 #BA9628 #28BA4D
square
#284CBA #BA2895 #BA9628 #28BA4D
split-complementary
#284CBA #BA4D28 #95BA28
monochromatic
#122355 #1D3788 #284CBA #486BD8 #7A94E2

Accessibility & contrast

On white

7.41
#284CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#284CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CBA
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CBA#FFFFFF#000000##FFFFFF
##284CBA1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #284cba;
/* rgb */ color: rgb(40, 76, 186);
/* oklch */ color: oklch(46.1% 0.178 265.8);
Tailwind
colors: {
  custom: {
    50: '#797dd0',
    500: '#284cba',
    950: '#000000',
  },
}
SCSS
$custom: #284cba;
$custom-light: #797dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#284cba",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 225.205,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46114,
    "c": 0.17844,
    "h": 265.8
  },
  "luminance": 0.09165
}

Semantic roles & 50–950 ramp

primary
#284CBA
secondary
#CAB573
accent
#BE40E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #284CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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