#2640B0#2640B0

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

Color values

HEX#2640B0
RGBrgb(38, 64, 176)
HSLhsl(229, 64%, 42%)
HSVhsv(229, 78%, 69%)
CMYKcmyk(78.4%, 63.6%, 0%, 31%)
CIE-LABlab(32.29, 31.53, -62.23)
CIE-LCHlch(32.29, 69.76, 296.87°)
OKLaboklab(42.85% -0.0074 -0.18)
OKLCHoklch(42.85% 0.18 267.6)
XYZxyz(10.4665, 7.2123, 41.9064)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640B0 #B09626
analogous
#2685B0 #2640B0 #5126B0
triadic
#2640B0 #B02640 #40B026
tetradic
#2640B0 #B02685 #B09626 #26B051
square
#2640B0 #B02685 #B09626 #26B051
split-complementary
#2640B0 #B05126 #85B026
monochromatic
#101B4B #1B2E7E #2640B0 #3E5AD5 #7085E0

Accessibility & contrast

On white

8.60
#2640B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2640B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2640B0#FFFFFF#000000##FFFFFF
##2640B01.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)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2640b0;
/* rgb */ color: rgb(38, 64, 176);
/* oklch */ color: oklch(42.8% 0.180 267.6);
Tailwind
colors: {
  custom: {
    50: '#7774c9',
    500: '#2640b0',
    950: '#000000',
  },
}
SCSS
$custom: #2640b0;
$custom-light: #7774c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2640b0",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 228.696,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42849,
    "c": 0.18017,
    "h": 267.6
  },
  "luminance": 0.07213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2640B0

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

Preview Lab → · Contrast checker → · Palette generator →

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