#284FCA#284FCA

#284FCA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.196 H 265.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#284FCA
RGBrgb(40, 79, 202)
HSLhsl(226, 67%, 47%)
HSVhsv(226, 80%, 79%)
CMYKcmyk(80.2%, 60.9%, 0%, 20.8%)
CIE-LABlab(38.39, 31.68, -67.51)
CIE-LCHlch(38.39, 74.58, 295.14°)
OKLaboklab(48.08% -0.0147 -0.1953)
OKLCHoklch(48.08% 0.196 265.7)
XYZxyz(14.3280, 10.3057, 57.0997)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FCA #CAA328
analogous
#28A0CA #284FCA #5228CA
triadic
#284FCA #CA284F #4FCA28
tetradic
#284FCA #CA28A0 #CAA328 #28CA52
square
#284FCA #CA28A0 #CAA328 #28CA52
split-complementary
#284FCA #CA5228 #A0CA28
monochromatic
#142764 #1E3B97 #284FCA #5274DD #859DE7

Accessibility & contrast

On white

6.86
#284FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#284FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #284FCA
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FCA#FFFFFF#000000##FFFFFF
##284FCA1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006F85
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #284fca;
/* rgb */ color: rgb(40, 79, 202);
/* oklch */ color: oklch(48.1% 0.196 265.7);
Tailwind
colors: {
  custom: {
    50: '#7d7fdb',
    500: '#284fca',
    950: '#000000',
  },
}
SCSS
$custom: #284fca;
$custom-light: #7d7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#284fca",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 225.556,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48078,
    "c": 0.19586,
    "h": 265.7
  },
  "luminance": 0.10307
}

Semantic roles & 50–950 ramp

primary
#284FCA
secondary
#D0BC7E
accent
#C03EEA
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #284FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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