#2F64D8#2F64D8

#2F64D8 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.6% C 0.187 H 263.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2F64D8
RGBrgb(47, 100, 216)
HSLhsl(221, 68%, 52%)
HSVhsv(221, 78%, 85%)
CMYKcmyk(78.2%, 53.7%, 0%, 15.3%)
CIE-LABlab(45.19, 24.04, -64.48)
CIE-LCHlch(45.19, 68.81, 290.45°)
OKLaboklab(53.59% -0.0225 -0.1859)
OKLCHoklch(53.59% 0.187 263.1)
XYZxyz(18.1197, 14.6744, 66.8299)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64D8 #D8A32F
analogous
#2FB9D8 #2F64D8 #4F2FD8
triadic
#2F64D8 #D82F64 #64D82F
tetradic
#2F64D8 #D82FB9 #D8A32F #2FD84F
square
#2F64D8 #D82FB9 #D8A32F #2FD84F
split-complementary
#2F64D8 #D84F2F #B9D82F
monochromatic
#163476 #204BAA #2F64D8 #638AE2 #96B1EB

Accessibility & contrast

On white

5.34
#2F64D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2F64D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64D8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64D8#FFFFFF#000000##FFFFFF
##2F64D81.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#0064D6
Tritanopia (blue-blind)
#008194
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f64d8;
/* rgb */ color: rgb(47, 100, 216);
/* oklch */ color: oklch(53.6% 0.187 263.1);
Tailwind
colors: {
  custom: {
    50: '#818fe5',
    500: '#2f64d8',
    950: '#000000',
  },
}
SCSS
$custom: #2f64d8;
$custom-light: #818fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64d8",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 216
  },
  "hsl": {
    "h": 221.183,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53591,
    "c": 0.18729,
    "h": 263.1
  },
  "luminance": 0.14677
}

Semantic roles & 50–950 ramp

primary
#2F64D8
secondary
#D7BF8C
accent
#B43DEB
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0C16
muted
#7D7D84

Preview Lab

Preview with #2F64D8

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

Preview Lab → · Contrast checker → · Palette generator →

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