#284FB2#284FB2

#284FB2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.164 H 264.5°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#284FB2
RGBrgb(40, 79, 178)
HSLhsl(223, 63%, 43%)
HSVhsv(223, 78%, 70%)
CMYKcmyk(77.5%, 55.6%, 0%, 30.2%)
CIE-LABlab(36.47, 22.58, -56.58)
CIE-LCHlch(36.47, 60.92, 291.75°)
OKLaboklab(46.05% -0.0157 -0.1632)
OKLCHoklch(46.05% 0.164 264.5)
XYZxyz(11.7041, 9.2561, 43.2806)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FB2 #B28B28
analogous
#2894B2 #284FB2 #4628B2
triadic
#284FB2 #B2284F #4FB228
tetradic
#284FB2 #B22894 #B28B28 #28B246
square
#284FB2 #B22894 #B28B28 #28B246
split-complementary
#284FB2 #B24628 #94B228
monochromatic
#12234E #1D3980 #284FB2 #436CD5 #7593E0

Accessibility & contrast

On white

7.36
#284FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#284FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FB2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FB2#FFFFFF#000000##FFFFFF
##284FB21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #284fb2;
/* rgb */ color: rgb(40, 79, 178);
/* oklch */ color: oklch(46.0% 0.164 264.5);
Tailwind
colors: {
  custom: {
    50: '#777fca',
    500: '#284fb2',
    950: '#000000',
  },
}
SCSS
$custom: #284fb2;
$custom-light: #777fca;
$custom-dark: #000000;
JSON
{
  "hex": "#284fb2",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 223.043,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46049,
    "c": 0.16395,
    "h": 264.5
  },
  "luminance": 0.09257
}

Semantic roles & 50–950 ramp

primary
#284FB2
secondary
#C7AE6F
accent
#B841E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #284FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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