#2F64B7#2F64B7

#2F64B7 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.2% C 0.143 H 259.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2F64B7
RGBrgb(47, 100, 183)
HSLhsl(217, 59%, 45%)
HSVhsv(217, 74%, 72%)
CMYKcmyk(74.3%, 45.4%, 0%, 28.2%)
CIE-LABlab(42.97, 11.60, -49.02)
CIE-LCHlch(42.97, 50.38, 283.31°)
OKLaboklab(51.19% -0.0269 -0.1405)
OKLCHoklch(51.19% 0.143 259.2)
XYZxyz(14.2736, 13.1360, 46.5738)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64B7 #B7822F
analogous
#2FA8B7 #2F64B7 #3E2FB7
triadic
#2F64B7 #B72F64 #64B72F
tetradic
#2F64B7 #B72FA8 #B7822F #2FB73E
square
#2F64B7 #B72FA8 #B7822F #2FB73E
split-complementary
#2F64B7 #B73E2F #A8B72F
monochromatic
#162F56 #224986 #2F64B7 #5183D2 #82A6DF

Accessibility & contrast

On white

5.79
#2F64B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2F64B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64B7
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64B7#FFFFFF#000000##FFFFFF
##2F64B71.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396CBA
Deuteranopia (green-blind)
#1D60B5
Tritanopia (blue-blind)
#007884
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f64b7;
/* rgb */ color: rgb(47, 100, 183);
/* oklch */ color: oklch(51.2% 0.143 259.2);
Tailwind
colors: {
  custom: {
    50: '#7a8fcd',
    500: '#2f64b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f64b7;
$custom-light: #7a8fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64b7",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 183
  },
  "hsl": {
    "h": 216.618,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51189,
    "c": 0.14302,
    "h": 259.2
  },
  "luminance": 0.13138
}

Semantic roles & 50–950 ramp

primary
#2F64B7
secondary
#C8A97A
accent
#A545E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F64B7

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

Preview Lab → · Contrast checker → · Palette generator →

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