#2642AA#2642AA

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

Color values

HEX#2642AA
RGBrgb(38, 66, 170)
HSLhsl(227, 63%, 41%)
HSVhsv(227, 78%, 67%)
CMYKcmyk(77.6%, 61.2%, 0%, 33.3%)
CIE-LABlab(32.28, 27.95, -58.66)
CIE-LCHlch(32.28, 64.97, 295.47°)
OKLaboklab(42.69% -0.0086 -0.1695)
OKLCHoklch(42.69% 0.17 267.1)
XYZxyz(10.0007, 7.2097, 38.8869)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2642AA #AA8E26
analogous
#2684AA #2642AA #4C26AA
triadic
#2642AA #AA2642 #42AA26
tetradic
#2642AA #AA2684 #AA8E26 #26AA4C
square
#2642AA #AA2684 #AA8E26 #26AA4C
split-complementary
#2642AA #AA4C26 #84AA26
monochromatic
#101B46 #1B2F78 #2642AA #3A5BD3 #6C84DE

Accessibility & contrast

On white

8.60
#2642AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2642AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2642AA#FFFFFF#000000##FFFFFF
##2642AA1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2642aa;
/* rgb */ color: rgb(38, 66, 170);
/* oklch */ color: oklch(42.7% 0.170 267.1);
Tailwind
colors: {
  custom: {
    50: '#7676c4',
    500: '#2642aa',
    950: '#000000',
  },
}
SCSS
$custom: #2642aa;
$custom-light: #7676c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2642aa",
  "rgb": {
    "r": 38,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 227.273,
    "s": 63.462,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42685,
    "c": 0.16975,
    "h": 267.1
  },
  "luminance": 0.07211
}

Semantic roles & 50–950 ramp

primary
#2642AA
secondary
#C5B167
accent
#C341E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2642AA

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

Preview Lab → · Contrast checker → · Palette generator →

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