#284EB2#284EB2

#284EB2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.165 H 264.8°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#284EB2
RGBrgb(40, 78, 178)
HSLhsl(223, 63%, 43%)
HSVhsv(223, 78%, 70%)
CMYKcmyk(77.5%, 56.2%, 0%, 30.2%)
CIE-LABlab(36.20, 23.24, -57.02)
CIE-LCHlch(36.20, 61.58, 292.17°)
OKLaboklab(45.84% -0.015 -0.1645)
OKLCHoklch(45.84% 0.165 264.8)
XYZxyz(11.6325, 9.1129, 43.2567)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284EB2 #B28C28
analogous
#2893B2 #284EB2 #4728B2
triadic
#284EB2 #B2284E #4EB228
tetradic
#284EB2 #B22893 #B28C28 #28B247
square
#284EB2 #B22893 #B28C28 #28B247
split-complementary
#284EB2 #B24728 #93B228
monochromatic
#12224E #1D3880 #284EB2 #436BD5 #7592E0

Accessibility & contrast

On white

7.44
#284EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#284EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284EB2
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284EB2#FFFFFF#000000##FFFFFF
##284EB21.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #284eb2;
/* rgb */ color: rgb(40, 78, 178);
/* oklch */ color: oklch(45.8% 0.165 264.8);
Tailwind
colors: {
  custom: {
    50: '#777fca',
    500: '#284eb2',
    950: '#000000',
  },
}
SCSS
$custom: #284eb2;
$custom-light: #777fca;
$custom-dark: #000000;
JSON
{
  "hex": "#284eb2",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 223.478,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45844,
    "c": 0.1652,
    "h": 264.8
  },
  "luminance": 0.09114
}

Semantic roles & 50–950 ramp

primary
#284EB2
secondary
#C7AF6F
accent
#B941E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #284EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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