#284F95#284F95

#284F95 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.123 H 261.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#284F95
RGBrgb(40, 79, 149)
HSLhsl(219, 58%, 37%)
HSVhsv(219, 73%, 58%)
CMYKcmyk(73.2%, 47%, 0%, 41.6%)
CIE-LABlab(34.42, 11.36, -42.53)
CIE-LCHlch(34.42, 44.02, 284.95°)
OKLaboklab(43.83% -0.0192 -0.1219)
OKLCHoklch(43.83% 0.123 261)
XYZxyz(9.0939, 8.2120, 29.5338)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F95 #956E28
analogous
#288695 #284F95 #382895
triadic
#284F95 #95284F #4F9528
tetradic
#284F95 #952886 #956E28 #289538
square
#284F95 #952886 #956E28 #289538
split-complementary
#284F95 #953828 #869528
monochromatic
#0E1C35 #1B3565 #284F95 #3569C5 #628BD5

Accessibility & contrast

On white

7.95
#284F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#284F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F95
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F95#FFFFFF#000000##FFFFFF
##284F951.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5698
Deuteranopia (green-blind)
#134C94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284f95;
/* rgb */ color: rgb(40, 79, 149);
/* oklch */ color: oklch(43.8% 0.123 261.0);
Tailwind
colors: {
  custom: {
    50: '#717fb5',
    500: '#284f95',
    950: '#000000',
  },
}
SCSS
$custom: #284f95;
$custom-light: #717fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#284f95",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 218.532,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43833,
    "c": 0.12336,
    "h": 261
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#284F95
secondary
#BB9A5E
accent
#AA47E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284F95

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

Preview Lab → · Contrast checker → · Palette generator →

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