#2D64C1#2D64C1

#2D64C1 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 51.8% C 0.157 H 260.3°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#2D64C1
RGBrgb(45, 100, 193)
HSLhsl(218, 62%, 47%)
HSVhsv(218, 77%, 76%)
CMYKcmyk(76.7%, 48.2%, 0%, 24.3%)
CIE-LABlab(43.54, 15.14, -53.93)
CIE-LCHlch(43.54, 56.01, 285.68°)
OKLaboklab(51.81% -0.0266 -0.1549)
OKLCHoklch(51.81% 0.157 260.3)
XYZxyz(15.2615, 13.5207, 52.2472)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D64C1 #C18A2D
analogous
#2DAEC1 #2D64C1 #402DC1
triadic
#2D64C1 #C12D64 #64C12D
tetradic
#2D64C1 #C12DAE #C18A2D #2DC140
square
#2D64C1 #C12DAE #C18A2D #2DC140
split-complementary
#2D64C1 #C1402D #AEC12D
monochromatic
#16315E #214A8F #2D64C1 #5485D7 #86A8E3

Accessibility & contrast

On white

5.67
#2D64C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#2D64C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D64C1
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D64C1#FFFFFF#000000##FFFFFF
##2D64C11.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6EC4
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#007A89
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2d64c1;
/* rgb */ color: rgb(45, 100, 193);
/* oklch */ color: oklch(51.8% 0.157 260.3);
Tailwind
colors: {
  custom: {
    50: '#7b8fd4',
    500: '#2d64c1',
    950: '#000000',
  },
}
SCSS
$custom: #2d64c1;
$custom-light: #7b8fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d64c1",
  "rgb": {
    "r": 45,
    "g": 100,
    "b": 193
  },
  "hsl": {
    "h": 217.703,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51813,
    "c": 0.15719,
    "h": 260.3
  },
  "luminance": 0.13522
}

Semantic roles & 50–950 ramp

primary
#2D64C1
secondary
#CCAF7E
accent
#A943E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2D64C1

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

Preview Lab → · Contrast checker → · Palette generator →

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