#2F64B5#2F64B5

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

Color values

HEX#2F64B5
RGBrgb(47, 100, 181)
HSLhsl(216, 59%, 45%)
HSVhsv(216, 74%, 71%)
CMYKcmyk(74%, 44.8%, 0%, 29%)
CIE-LABlab(42.84, 10.84, -48.05)
CIE-LCHlch(42.84, 49.26, 282.71°)
OKLaboklab(51.05% -0.0273 -0.1376)
OKLCHoklch(51.05% 0.14 258.8)
XYZxyz(14.0669, 13.0533, 45.4853)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64B5 #B5802F
analogous
#2FA7B5 #2F64B5 #3D2FB5
triadic
#2F64B5 #B52F64 #64B52F
tetradic
#2F64B5 #B52FA7 #B5802F #2FB53D
square
#2F64B5 #B52FA7 #B5802F #2FB53D
split-complementary
#2F64B5 #B53D2F #A7B52F
monochromatic
#162E54 #224984 #2F64B5 #5083D1 #80A5DE

Accessibility & contrast

On white

5.82
#2F64B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#2F64B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64B5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64B5#FFFFFF#000000##FFFFFF
##2F64B51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6CB8
Deuteranopia (green-blind)
#205FB3
Tritanopia (blue-blind)
#007783
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f64b5;
/* rgb */ color: rgb(47, 100, 181);
/* oklch */ color: oklch(51.1% 0.140 258.8);
Tailwind
colors: {
  custom: {
    50: '#798fcc',
    500: '#2f64b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f64b5;
$custom-light: #798fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64b5",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 181
  },
  "hsl": {
    "h": 216.269,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51053,
    "c": 0.1403,
    "h": 258.8
  },
  "luminance": 0.13055
}

Semantic roles & 50–950 ramp

primary
#2F64B5
secondary
#C7A879
accent
#A446E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F64B5

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

Preview Lab → · Contrast checker → · Palette generator →

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