#284BB5#284BB5

#284BB5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.173 H 265.8°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#284BB5
RGBrgb(40, 75, 181)
HSLhsl(225, 64%, 43%)
HSVhsv(225, 78%, 71%)
CMYKcmyk(77.9%, 58.6%, 0%, 29%)
CIE-LABlab(35.63, 26.38, -59.72)
CIE-LCHlch(35.63, 65.29, 293.83°)
OKLaboklab(45.49% -0.0127 -0.1725)
OKLCHoklch(45.49% 0.173 265.8)
XYZxyz(11.7287, 8.8181, 44.7910)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284BB5 #B59228
analogous
#2891B5 #284BB5 #4B28B5
triadic
#284BB5 #B5284B #4BB528
tetradic
#284BB5 #B52891 #B59228 #28B54B
square
#284BB5 #B52891 #B59228 #28B54B
split-complementary
#284BB5 #B54B28 #91B528
monochromatic
#122151 #1D3683 #284BB5 #4469D6 #7791E1

Accessibility & contrast

On white

7.60
#284BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#284BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284BB5
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284BB5#FFFFFF#000000##FFFFFF
##284BB51.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284bb5;
/* rgb */ color: rgb(40, 75, 181);
/* oklch */ color: oklch(45.5% 0.173 265.8);
Tailwind
colors: {
  custom: {
    50: '#787ccc',
    500: '#284bb5',
    950: '#000000',
  },
}
SCSS
$custom: #284bb5;
$custom-light: #787ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#284bb5",
  "rgb": {
    "r": 40,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 225.106,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4549,
    "c": 0.17297,
    "h": 265.8
  },
  "luminance": 0.08819
}

Semantic roles & 50–950 ramp

primary
#284BB5
secondary
#C8B370
accent
#BE41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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