#2642A5#2642A5

#2642A5 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.163 H 266.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2642A5
RGBrgb(38, 66, 165)
HSLhsl(227, 63%, 40%)
HSVhsv(227, 77%, 65%)
CMYKcmyk(77%, 60%, 0%, 35.3%)
CIE-LABlab(31.86, 26.04, -56.34)
CIE-LCHlch(31.86, 62.07, 294.80°)
OKLaboklab(42.24% -0.0087 -0.1627)
OKLCHoklch(42.24% 0.163 266.9)
XYZxyz(9.5367, 7.0241, 36.4432)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2642A5 #A58926
analogous
#2681A5 #2642A5 #4A26A5
triadic
#2642A5 #A52642 #42A526
tetradic
#2642A5 #A52681 #A58926 #26A54A
square
#2642A5 #A52681 #A58926 #26A54A
split-complementary
#2642A5 #A54A26 #81A526
monochromatic
#0F1A42 #1B2E73 #2642A5 #3759D1 #6982DC

Accessibility & contrast

On white

8.73
#2642A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2642A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2642A5
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2642A5#FFFFFF#000000##FFFFFF
##2642A51.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2642a5;
/* rgb */ color: rgb(38, 66, 165);
/* oklch */ color: oklch(42.2% 0.163 266.9);
Tailwind
colors: {
  custom: {
    50: '#7476c1',
    500: '#2642a5',
    950: '#000000',
  },
}
SCSS
$custom: #2642a5;
$custom-light: #7476c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2642a5",
  "rgb": {
    "r": 38,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 226.772,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42243,
    "c": 0.16297,
    "h": 266.9
  },
  "luminance": 0.07025
}

Semantic roles & 50–950 ramp

primary
#2642A5
secondary
#C3AE64
accent
#C242E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2642A5

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

Preview Lab → · Contrast checker → · Palette generator →

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