#2640AF#2640AF

#2640AF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.179 H 267.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#2640AF
RGBrgb(38, 64, 175)
HSLhsl(229, 64%, 42%)
HSVhsv(229, 78%, 69%)
CMYKcmyk(78.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.20, 31.16, -61.78)
CIE-LCHlch(32.20, 69.19, 296.76°)
OKLaboklab(42.76% -0.0074 -0.1787)
OKLCHoklch(42.76% 0.179 267.6)
XYZxyz(10.3679, 7.1728, 41.3872)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640AF #AF9526
analogous
#2685AF #2640AF #5126AF
triadic
#2640AF #AF2640 #40AF26
tetradic
#2640AF #AF2685 #AF9526 #26AF51
square
#2640AF #AF2685 #AF9526 #26AF51
split-complementary
#2640AF #AF5126 #85AF26
monochromatic
#101B4A #1B2E7D #2640AF #3D5AD5 #7085E0

Accessibility & contrast

On white

8.62
#2640AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2640AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640AF
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640AF#FFFFFF#000000##FFFFFF
##2640AF1.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2640af;
/* rgb */ color: rgb(38, 64, 175);
/* oklch */ color: oklch(42.8% 0.179 267.6);
Tailwind
colors: {
  custom: {
    50: '#7774c8',
    500: '#2640af',
    950: '#000000',
  },
}
SCSS
$custom: #2640af;
$custom-light: #7774c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2640af",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 228.613,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42757,
    "c": 0.17885,
    "h": 267.6
  },
  "luminance": 0.07174
}

Semantic roles & 50–950 ramp

primary
#2640AF
secondary
#C7B56A
accent
#C840E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2640AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2640AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva