#284F9C#284F9C

#284F9C is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.133 H 262.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#284F9C
RGBrgb(40, 79, 156)
HSLhsl(220, 59%, 38%)
HSVhsv(220, 74%, 61%)
CMYKcmyk(74.4%, 49.4%, 0%, 38.8%)
CIE-LABlab(34.89, 14.07, -46.01)
CIE-LCHlch(34.89, 48.12, 287.00°)
OKLaboklab(44.34% -0.0181 -0.1321)
OKLCHoklch(44.34% 0.133 262.2)
XYZxyz(9.6697, 8.4423, 32.5660)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F9C #9C7528
analogous
#28899C #284F9C #3B289C
triadic
#284F9C #9C284F #4F9C28
tetradic
#284F9C #9C2889 #9C7528 #289C3B
square
#284F9C #9C2889 #9C7528 #289C3B
split-complementary
#284F9C #9C3B28 #899C28
monochromatic
#0F1E3B #1C366B #284F9C #3668CB #678DD8

Accessibility & contrast

On white

7.81
#284F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#284F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F9C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F9C#FFFFFF#000000##FFFFFF
##284F9C1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24589F
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284f9c;
/* rgb */ color: rgb(40, 79, 156);
/* oklch */ color: oklch(44.3% 0.133 262.2);
Tailwind
colors: {
  custom: {
    50: '#727fba',
    500: '#284f9c',
    950: '#000000',
  },
}
SCSS
$custom: #284f9c;
$custom-light: #727fba;
$custom-dark: #000000;
JSON
{
  "hex": "#284f9c",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 156
  },
  "hsl": {
    "h": 219.828,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44341,
    "c": 0.13334,
    "h": 262.2
  },
  "luminance": 0.08443
}

Semantic roles & 50–950 ramp

primary
#284F9C
secondary
#BE9F62
accent
#AE45E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #284F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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