#2642A2#2642A2

#2642A2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.159 H 266.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2642A2
RGBrgb(38, 66, 162)
HSLhsl(226, 62%, 39%)
HSVhsv(226, 77%, 64%)
CMYKcmyk(76.5%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.62, 24.89, -54.94)
CIE-LCHlch(31.62, 60.31, 294.37°)
OKLaboklab(41.98% -0.0088 -0.1586)
OKLCHoklch(41.98% 0.159 266.8)
XYZxyz(9.2669, 6.9161, 35.0220)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2642A2 #A28626
analogous
#2680A2 #2642A2 #4826A2
triadic
#2642A2 #A22642 #42A226
tetradic
#2642A2 #A22680 #A28626 #26A248
square
#2642A2 #A22680 #A28626 #26A248
split-complementary
#2642A2 #A24826 #80A226
monochromatic
#0F1A3F #1A2E70 #2642A2 #3558D0 #6781DB

Accessibility & contrast

On white

8.81
#2642A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2642A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2642A2
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2642A2#FFFFFF#000000##FFFFFF
##2642A21.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2642a2;
/* rgb */ color: rgb(38, 66, 162);
/* oklch */ color: oklch(42.0% 0.159 266.8);
Tailwind
colors: {
  custom: {
    50: '#7476be',
    500: '#2642a2',
    950: '#000000',
  },
}
SCSS
$custom: #2642a2;
$custom-light: #7476be;
$custom-dark: #000000;
JSON
{
  "hex": "#2642a2",
  "rgb": {
    "r": 38,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 226.452,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41983,
    "c": 0.15885,
    "h": 266.8
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#2642A2
secondary
#C1AC63
accent
#C043E5
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2642A2

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

Preview Lab → · Contrast checker → · Palette generator →

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