#284FBA#284FBA

#284FBA is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.175 H 265.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#284FBA
RGBrgb(40, 79, 186)
HSLhsl(224, 65%, 44%)
HSVhsv(224, 78%, 73%)
CMYKcmyk(78.5%, 57.5%, 0%, 27.1%)
CIE-LABlab(37.09, 25.64, -60.29)
CIE-LCHlch(37.09, 65.52, 293.04°)
OKLaboklab(46.71% -0.0152 -0.1741)
OKLCHoklch(46.71% 0.175 265)
XYZxyz(12.5308, 9.5868, 47.6349)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FBA #BA9328
analogous
#2898BA #284FBA #4A28BA
triadic
#284FBA #BA284F #4FBA28
tetradic
#284FBA #BA2898 #BA9328 #28BA4A
square
#284FBA #BA2898 #BA9328 #28BA4A
split-complementary
#284FBA #BA4A28 #98BA28
monochromatic
#122455 #1D3A88 #284FBA #486ED8 #7A96E2

Accessibility & contrast

On white

7.20
#284FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#284FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FBA
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FBA#FFFFFF#000000##FFFFFF
##284FBA1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #284fba;
/* rgb */ color: rgb(40, 79, 186);
/* oklch */ color: oklch(46.7% 0.175 265.0);
Tailwind
colors: {
  custom: {
    50: '#797fd0',
    500: '#284fba',
    950: '#000000',
  },
}
SCSS
$custom: #284fba;
$custom-light: #797fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#284fba",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 223.973,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46708,
    "c": 0.17477,
    "h": 265
  },
  "luminance": 0.09588
}

Semantic roles & 50–950 ramp

primary
#284FBA
secondary
#CAB373
accent
#BB40E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #284FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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