#402FBC#402FBC

#402FBC is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.8% C 0.207 H 278.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#402FBC
RGBrgb(64, 47, 188)
HSLhsl(247, 60%, 46%)
HSVhsv(247, 75%, 74%)
CMYKcmyk(66%, 75%, 0%, 26.3%)
CIE-LABlab(31.24, 48.64, -71.01)
CIE-LCHlch(31.24, 86.07, 304.41°)
OKLaboklab(42.85% 0.0306 -0.2051)
OKLCHoklch(42.85% 0.207 278.5)
XYZxyz(12.2050, 6.7528, 48.2274)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FBC #ABBC2F
analogous
#2F64BC #402FBC #862FBC
triadic
#402FBC #BC402F #2FBC40
tetradic
#402FBC #BC2F64 #ABBC2F #2FBC86
square
#402FBC #BC2F64 #ABBC2F #2FBC86
split-complementary
#402FBC #BC862F #64BC2F
monochromatic
#1F175A #2F238B #402FBC #6354D4 #9085E0

Accessibility & contrast

On white

8.93
#402FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#402FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FBC
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FBC#FFFFFF#000000##FFFFFF
##402FBC1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402fbc;
/* rgb */ color: rgb(64, 47, 188);
/* oklch */ color: oklch(42.8% 0.207 278.5);
Tailwind
colors: {
  custom: {
    50: '#856ad1',
    500: '#402fbc',
    950: '#000000',
  },
}
SCSS
$custom: #402fbc;
$custom-light: #856ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#402fbc",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 247.234,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42847,
    "c": 0.20733,
    "h": 278.5
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#402FBC
secondary
#C1CA7D
accent
#E345D0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #402FBC

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

Preview Lab → · Contrast checker → · Palette generator →

#402FBC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva