#284FBF#284FBF

#284FBF is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.181 H 265.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#284FBF
RGBrgb(40, 79, 191)
HSLhsl(225, 65%, 45%)
HSVhsv(225, 79%, 75%)
CMYKcmyk(79.1%, 58.6%, 0%, 25.1%)
CIE-LABlab(37.49, 27.54, -62.58)
CIE-LCHlch(37.49, 68.37, 293.76°)
OKLaboklab(47.13% -0.015 -0.1808)
OKLCHoklch(47.13% 0.181 265.3)
XYZxyz(13.0717, 9.8031, 50.4834)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FBF #BF9828
analogous
#289BBF #284FBF #4C28BF
triadic
#284FBF #BF284F #4FBF28
tetradic
#284FBF #BF289B #BF9828 #28BF4C
square
#284FBF #BF289B #BF9828 #28BF4C
split-complementary
#284FBF #BF4C28 #9BBF28
monochromatic
#13255A #1D3A8C #284FBF #4B70D9 #7E98E4

Accessibility & contrast

On white

7.09
#284FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#284FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FBF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FBF#FFFFFF#000000##FFFFFF
##284FBF1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #284fbf;
/* rgb */ color: rgb(40, 79, 191);
/* oklch */ color: oklch(47.1% 0.181 265.3);
Tailwind
colors: {
  custom: {
    50: '#7a7fd3',
    500: '#284fbf',
    950: '#000000',
  },
}
SCSS
$custom: #284fbf;
$custom-light: #7a7fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#284fbf",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 191
  },
  "hsl": {
    "h": 224.503,
    "s": 65.368,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.18143,
    "h": 265.3
  },
  "luminance": 0.09805
}

Semantic roles & 50–950 ramp

primary
#284FBF
secondary
#CCB677
accent
#BD3FE8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #284FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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