#2642AB#2642AB

#2642AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.171 H 267.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2642AB
RGBrgb(38, 66, 171)
HSLhsl(227, 64%, 41%)
HSVhsv(227, 78%, 67%)
CMYKcmyk(77.8%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.36, 28.33, -59.12)
CIE-LCHlch(32.36, 65.55, 295.60°)
OKLaboklab(42.77% -0.0086 -0.1709)
OKLCHoklch(42.77% 0.171 267.1)
XYZxyz(10.0957, 7.2476, 39.3870)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2642AB #AB8F26
analogous
#2684AB #2642AB #4C26AB
triadic
#2642AB #AB2642 #42AB26
tetradic
#2642AB #AB2684 #AB8F26 #26AB4C
square
#2642AB #AB2684 #AB8F26 #26AB4C
split-complementary
#2642AB #AB4C26 #84AB26
monochromatic
#101B47 #1B2F79 #2642AB #3B5BD3 #6D85DF

Accessibility & contrast

On white

8.57
#2642AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2642AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2642AB
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2642AB#FFFFFF#000000##FFFFFF
##2642AB1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2642ab;
/* rgb */ color: rgb(38, 66, 171);
/* oklch */ color: oklch(42.8% 0.171 267.1);
Tailwind
colors: {
  custom: {
    50: '#7676c5',
    500: '#2642ab',
    950: '#000000',
  },
}
SCSS
$custom: #2642ab;
$custom-light: #7676c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2642ab",
  "rgb": {
    "r": 38,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 227.368,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42774,
    "c": 0.1711,
    "h": 267.1
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#2642AB
secondary
#C5B168
accent
#C441E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2642AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2642AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva