#2642AE#2642AE

#2642AE is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.175 H 267.2°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2642AE
RGBrgb(38, 66, 174)
HSLhsl(228, 64%, 42%)
HSVhsv(228, 78%, 68%)
CMYKcmyk(78.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.62, 29.46, -60.49)
CIE-LCHlch(32.62, 67.28, 295.97°)
OKLaboklab(43.04% -0.0086 -0.1749)
OKLCHoklch(43.04% 0.175 267.2)
XYZxyz(10.3849, 7.3633, 40.9101)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2642AE #AE9226
analogous
#2686AE #2642AE #4E26AE
triadic
#2642AE #AE2642 #42AE26
tetradic
#2642AE #AE2686 #AE9226 #26AE4E
square
#2642AE #AE2686 #AE9226 #26AE4E
split-complementary
#2642AE #AE4E26 #86AE26
monochromatic
#101C4A #1B2F7C #2642AE #3D5CD5 #6F86E0

Accessibility & contrast

On white

8.49
#2642AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2642AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2642AE
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2642AE#FFFFFF#000000##FFFFFF
##2642AE1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2642ae;
/* rgb */ color: rgb(38, 66, 174);
/* oklch */ color: oklch(43.0% 0.175 267.2);
Tailwind
colors: {
  custom: {
    50: '#7776c7',
    500: '#2642ae',
    950: '#000000',
  },
}
SCSS
$custom: #2642ae;
$custom-light: #7776c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2642ae",
  "rgb": {
    "r": 38,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 227.647,
    "s": 64.151,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43043,
    "c": 0.17512,
    "h": 267.2
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

primary
#2642AE
secondary
#C6B36A
accent
#C541E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2642AE

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

Preview Lab → · Contrast checker → · Palette generator →

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