#284166#284166

#284166 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.4% C 0.071 H 258.0°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#284166
RGBrgb(40, 65, 102)
HSLhsl(216, 44%, 28%)
HSVhsv(216, 61%, 40%)
CMYKcmyk(60.8%, 36.3%, 0%, 60%)
CIE-LABlab(27.27, 2.85, -24.62)
CIE-LCHlch(27.27, 24.79, 276.59°)
OKLaboklab(37.37% -0.0147 -0.0696)
OKLCHoklch(37.37% 0.071 258)
XYZxyz(5.1628, 5.1906, 13.2976)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284166 #664D28
analogous
#286066 #284166 #2E2866
triadic
#284166 #662841 #416628
tetradic
#284166 #662860 #664D28 #28662E
square
#284166 #662860 #664D28 #28662E
split-complementary
#284166 #662E28 #606628
monochromatic
#090E16 #17253A #284166 #395D92 #4F7ABA

Accessibility & contrast

On white

10.30
#284166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#284166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284166
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284166#FFFFFF#000000##FFFFFF
##2841661.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324468
Deuteranopia (green-blind)
#2A3E65
Tritanopia (blue-blind)
#00494E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #284166;
/* rgb */ color: rgb(40, 65, 102);
/* oklch */ color: oklch(37.4% 0.071 258.0);
Tailwind
colors: {
  custom: {
    50: '#677592',
    500: '#284166',
    950: '#000000',
  },
}
SCSS
$custom: #284166;
$custom-light: #677592;
$custom-dark: #000000;
JSON
{
  "hex": "#284166",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 102
  },
  "hsl": {
    "h": 215.806,
    "s": 43.662,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37372,
    "c": 0.07112,
    "h": 258
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#284166
secondary
#997C51
accent
#A054D3
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#06080D
muted
#7A7B7D

Preview Lab

Preview with #284166

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

Preview Lab → · Contrast checker → · Palette generator →

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