#2F64B6#2F64B6

#2F64B6 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.1% C 0.142 H 259.0°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#2F64B6
RGBrgb(47, 100, 182)
HSLhsl(216, 59%, 45%)
HSVhsv(216, 74%, 71%)
CMYKcmyk(74.2%, 45.1%, 0%, 28.6%)
CIE-LABlab(42.91, 11.22, -48.54)
CIE-LCHlch(42.91, 49.82, 283.02°)
OKLaboklab(51.12% -0.0271 -0.139)
OKLCHoklch(51.12% 0.142 259)
XYZxyz(14.1699, 13.0945, 46.0276)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64B6 #B6812F
analogous
#2FA8B6 #2F64B6 #3D2FB6
triadic
#2F64B6 #B62F64 #64B62F
tetradic
#2F64B6 #B62FA8 #B6812F #2FB63D
square
#2F64B6 #B62FA8 #B6812F #2FB63D
split-complementary
#2F64B6 #B63D2F #A8B62F
monochromatic
#162F55 #224985 #2F64B6 #5083D2 #81A6DE

Accessibility & contrast

On white

5.80
#2F64B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#2F64B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64B6
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64B6#FFFFFF#000000##FFFFFF
##2F64B61.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6CB9
Deuteranopia (green-blind)
#1F60B4
Tritanopia (blue-blind)
#007784
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f64b6;
/* rgb */ color: rgb(47, 100, 182);
/* oklch */ color: oklch(51.1% 0.142 259.0);
Tailwind
colors: {
  custom: {
    50: '#7a8fcc',
    500: '#2f64b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f64b6;
$custom-light: #7a8fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64b6",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 182
  },
  "hsl": {
    "h": 216.444,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51121,
    "c": 0.14165,
    "h": 259
  },
  "luminance": 0.13096
}

Semantic roles & 50–950 ramp

primary
#2F64B6
secondary
#C7A979
accent
#A546E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F64B6

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

Preview Lab → · Contrast checker → · Palette generator →

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