#404262#404262

#404262 is a dark, muted blue. Relative luminance 0.059; OKLCH L 39.1% C 0.054 H 280.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#404262
RGBrgb(64, 66, 98)
HSLhsl(236, 21%, 32%)
HSVhsv(236, 35%, 38%)
CMYKcmyk(34.7%, 32.7%, 0%, 61.6%)
CIE-LABlab(29.08, 7.69, -19.11)
CIE-LCHlch(29.08, 20.60, 291.93°)
OKLaboklab(39.15% 0.0102 -0.0531)
OKLCHoklch(39.15% 0.054 280.8)
XYZxyz(6.2666, 5.8681, 12.3554)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404262 #626040
analogous
#405362 #404262 #4F4062
triadic
#404262 #624042 #426240
tetradic
#404262 #624053 #626040 #40624F
square
#404262 #624053 #626040 #40624F
split-complementary
#404262 #624F40 #536240
monochromatic
#101018 #28293D #404262 #585B87 #7779A6

Accessibility & contrast

On white

9.66
#404262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#404262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404262
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404262#FFFFFF#000000##FFFFFF
##4042621.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384663
Deuteranopia (green-blind)
#374361
Tritanopia (blue-blind)
#37484D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #404262;
/* rgb */ color: rgb(64, 66, 98);
/* oklch */ color: oklch(39.1% 0.054 280.8);
Tailwind
colors: {
  custom: {
    50: '#76768e',
    500: '#404262',
    950: '#000000',
  },
}
SCSS
$custom: #404262;
$custom-light: #76768e;
$custom-dark: #000000;
JSON
{
  "hex": "#404262",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 98
  },
  "hsl": {
    "h": 236.471,
    "s": 20.988,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.0541,
    "h": 280.8
  },
  "luminance": 0.05868
}

Semantic roles & 50–950 ramp

primary
#404262
secondary
#928F6C
accent
#B96ABE
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080C
muted
#7B7B7D

Preview Lab

Preview with #404262

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

Preview Lab → · Contrast checker → · Palette generator →

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