#2F64B4#2F64B4

#2F64B4 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.0% C 0.139 H 258.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#2F64B4
RGBrgb(47, 100, 180)
HSLhsl(216, 59%, 45%)
HSVhsv(216, 74%, 71%)
CMYKcmyk(73.9%, 44.4%, 0%, 29.4%)
CIE-LABlab(42.78, 10.47, -47.57)
CIE-LCHlch(42.78, 48.71, 282.41°)
OKLaboklab(50.99% -0.0275 -0.1362)
OKLCHoklch(50.99% 0.139 258.6)
XYZxyz(13.9647, 13.0124, 44.9468)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64B4 #B47F2F
analogous
#2FA7B4 #2F64B4 #3D2FB4
triadic
#2F64B4 #B42F64 #64B42F
tetradic
#2F64B4 #B42FA7 #B47F2F #2FB43D
square
#2F64B4 #B42FA7 #B47F2F #2FB43D
split-complementary
#2F64B4 #B43D2F #A7B42F
monochromatic
#162E53 #224983 #2F64B4 #4F83D1 #80A5DE

Accessibility & contrast

On white

5.83
#2F64B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#2F64B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64B4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64B4#FFFFFF#000000##FFFFFF
##2F64B41.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6CB7
Deuteranopia (green-blind)
#225FB2
Tritanopia (blue-blind)
#007783
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f64b4;
/* rgb */ color: rgb(47, 100, 180);
/* oklch */ color: oklch(51.0% 0.139 258.6);
Tailwind
colors: {
  custom: {
    50: '#798fcb',
    500: '#2f64b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f64b4;
$custom-light: #798fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64b4",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 180
  },
  "hsl": {
    "h": 216.09,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50986,
    "c": 0.13893,
    "h": 258.6
  },
  "luminance": 0.13014
}

Semantic roles & 50–950 ramp

primary
#2F64B4
secondary
#C7A778
accent
#A446E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F64B4

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

Preview Lab → · Contrast checker → · Palette generator →

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