#284179#284179

#284179 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.100 H 264.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#284179
RGBrgb(40, 65, 121)
HSLhsl(221, 50%, 32%)
HSVhsv(221, 67%, 47%)
CMYKcmyk(66.9%, 46.3%, 0%, 52.5%)
CIE-LABlab(28.41, 10.02, -34.88)
CIE-LCHlch(28.41, 36.29, 286.02°)
OKLaboklab(38.62% -0.0102 -0.0996)
OKLCHoklch(38.62% 0.1 264.2)
XYZxyz(6.2154, 5.6116, 18.8411)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284179 #796028
analogous
#286A79 #284179 #372879
triadic
#284179 #792841 #417928
tetradic
#284179 #79286A #796028 #287937
square
#284179 #79286A #796028 #287937
split-complementary
#284179 #793728 #6A7928
monochromatic
#0A101D #19284B #284179 #375AA7 #5578C7

Accessibility & contrast

On white

9.89
#284179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#284179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284179
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284179#FFFFFF#000000##FFFFFF
##2841791.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477B
Deuteranopia (green-blind)
#194078
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284179;
/* rgb */ color: rgb(40, 65, 121);
/* oklch */ color: oklch(38.6% 0.100 264.2);
Tailwind
colors: {
  custom: {
    50: '#6b75a0',
    500: '#284179',
    950: '#000000',
  },
}
SCSS
$custom: #284179;
$custom-light: #6b75a0;
$custom-dark: #000000;
JSON
{
  "hex": "#284179",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 121
  },
  "hsl": {
    "h": 221.481,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38624,
    "c": 0.10012,
    "h": 264.2
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#284179
secondary
#AB8F52
accent
#AF4EDA
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #284179

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

Preview Lab → · Contrast checker → · Palette generator →

#284179 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva