#2642A4#2642A4

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

Color values

HEX#2642A4
RGBrgb(38, 66, 164)
HSLhsl(227, 62%, 40%)
HSVhsv(227, 77%, 64%)
CMYKcmyk(76.8%, 59.8%, 0%, 35.7%)
CIE-LABlab(31.78, 25.66, -55.87)
CIE-LCHlch(31.78, 61.48, 294.66°)
OKLaboklab(42.16% -0.0087 -0.1614)
OKLCHoklch(42.16% 0.162 266.9)
XYZxyz(9.4460, 6.9878, 35.9657)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2642A4 #A48826
analogous
#2681A4 #2642A4 #4926A4
triadic
#2642A4 #A42642 #42A426
tetradic
#2642A4 #A42681 #A48826 #26A449
square
#2642A4 #A42681 #A48826 #26A449
split-complementary
#2642A4 #A44926 #81A426
monochromatic
#0F1A41 #1A2E72 #2642A4 #3759D1 #6882DC

Accessibility & contrast

On white

8.76
#2642A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2642A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2642A4
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2642A4#FFFFFF#000000##FFFFFF
##2642A41.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2642a4;
/* rgb */ color: rgb(38, 66, 164);
/* oklch */ color: oklch(42.2% 0.162 266.9);
Tailwind
colors: {
  custom: {
    50: '#7476c0',
    500: '#2642a4',
    950: '#000000',
  },
}
SCSS
$custom: #2642a4;
$custom-light: #7476c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2642a4",
  "rgb": {
    "r": 38,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 226.667,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42156,
    "c": 0.1616,
    "h": 266.9
  },
  "luminance": 0.06989
}

Semantic roles & 50–950 ramp

primary
#2642A4
secondary
#C2AD64
accent
#C142E5
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2642A4

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

Preview Lab → · Contrast checker → · Palette generator →

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