#2D64B1#2D64B1

#2D64B1 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 50.7% C 0.135 H 257.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#2D64B1
RGBrgb(45, 100, 177)
HSLhsl(215, 59%, 44%)
HSVhsv(215, 75%, 69%)
CMYKcmyk(74.6%, 43.5%, 0%, 30.6%)
CIE-LABlab(42.53, 9.06, -46.22)
CIE-LCHlch(42.53, 47.10, 281.09°)
OKLaboklab(50.71% -0.0294 -0.1322)
OKLCHoklch(50.71% 0.135 257.5)
XYZxyz(13.5723, 12.8450, 43.3505)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D64B1 #B17A2D
analogous
#2DA6B1 #2D64B1 #382DB1
triadic
#2D64B1 #B12D64 #64B12D
tetradic
#2D64B1 #B12DA6 #B17A2D #2DB138
square
#2D64B1 #B12DA6 #B17A2D #2DB138
split-complementary
#2D64B1 #B1382D #A6B12D
monochromatic
#142D4F #214880 #2D64B1 #4A82D1 #7BA4DD

Accessibility & contrast

On white

5.88
#2D64B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2D64B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D64B1
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D64B1#FFFFFF#000000##FFFFFF
##2D64B11.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6BB4
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#007682
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d64b1;
/* rgb */ color: rgb(45, 100, 177);
/* oklch */ color: oklch(50.7% 0.135 257.5);
Tailwind
colors: {
  custom: {
    50: '#788fc9',
    500: '#2d64b1',
    950: '#000000',
  },
}
SCSS
$custom: #2d64b1;
$custom-light: #788fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d64b1",
  "rgb": {
    "r": 45,
    "g": 100,
    "b": 177
  },
  "hsl": {
    "h": 215,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50711,
    "c": 0.13549,
    "h": 257.5
  },
  "luminance": 0.12847
}

Semantic roles & 50–950 ramp

primary
#2D64B1
secondary
#C6A474
accent
#A145E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D64B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2D64B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva