#284C95#284C95

#284C95 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.2% C 0.127 H 262.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#284C95
RGBrgb(40, 76, 149)
HSLhsl(220, 58%, 37%)
HSVhsv(220, 73%, 58%)
CMYKcmyk(73.2%, 49%, 0%, 41.6%)
CIE-LABlab(33.54, 13.37, -43.95)
CIE-LCHlch(33.54, 45.94, 286.92°)
OKLaboklab(43.16% -0.0164 -0.1261)
OKLCHoklch(43.16% 0.127 262.6)
XYZxyz(8.8824, 7.7890, 29.4632)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C95 #957128
analogous
#288395 #284C95 #3A2895
triadic
#284C95 #95284C #4C9528
tetradic
#284C95 #952883 #957128 #28953A
square
#284C95 #952883 #957128 #28953A
split-complementary
#284C95 #953A28 #839528
monochromatic
#0E1B35 #1B3365 #284C95 #3565C5 #6288D5

Accessibility & contrast

On white

8.21
#284C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#284C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C95
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C95#FFFFFF#000000##FFFFFF
##284C951.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245498
Deuteranopia (green-blind)
#054A94
Tritanopia (blue-blind)
#005D69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284c95;
/* rgb */ color: rgb(40, 76, 149);
/* oklch */ color: oklch(43.2% 0.127 262.6);
Tailwind
colors: {
  custom: {
    50: '#717db5',
    500: '#284c95',
    950: '#000000',
  },
}
SCSS
$custom: #284c95;
$custom-light: #717db5;
$custom-dark: #000000;
JSON
{
  "hex": "#284c95",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 149
  },
  "hsl": {
    "h": 220.183,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43156,
    "c": 0.12716,
    "h": 262.6
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#284C95
secondary
#BB9C5E
accent
#AE47E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #284C95

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

Preview Lab → · Contrast checker → · Palette generator →

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