#2F64C4#2F64C4

#2F64C4 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.1% C 0.161 H 261.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#2F64C4
RGBrgb(47, 100, 196)
HSLhsl(219, 61%, 48%)
HSVhsv(219, 76%, 77%)
CMYKcmyk(76%, 49%, 0%, 23.1%)
CIE-LABlab(43.80, 16.51, -55.23)
CIE-LCHlch(43.80, 57.65, 286.64°)
OKLaboklab(52.1% -0.0248 -0.1587)
OKLCHoklch(52.1% 0.161 261.1)
XYZxyz(15.6897, 13.7024, 54.0318)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64C4 #C48F2F
analogous
#2FAEC4 #2F64C4 #452FC4
triadic
#2F64C4 #C42F64 #64C42F
tetradic
#2F64C4 #C42FAE #C48F2F #2FC445
square
#2F64C4 #C42FAE #C48F2F #2FC445
split-complementary
#2F64C4 #C4452F #AEC42F
monochromatic
#173261 #234B93 #2F64C4 #5986D7 #8AAAE3

Accessibility & contrast

On white

5.61
#2F64C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#2F64C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64C4
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64C4#FFFFFF#000000##FFFFFF
##2F64C41.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6FC8
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#007B8A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2f64c4;
/* rgb */ color: rgb(47, 100, 196);
/* oklch */ color: oklch(52.1% 0.161 261.1);
Tailwind
colors: {
  custom: {
    50: '#7d8fd6',
    500: '#2f64c4',
    950: '#000000',
  },
}
SCSS
$custom: #2f64c4;
$custom-light: #7d8fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64c4",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 196
  },
  "hsl": {
    "h": 218.658,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52099,
    "c": 0.16066,
    "h": 261.1
  },
  "luminance": 0.13704
}

Semantic roles & 50–950 ramp

primary
#2F64C4
secondary
#CDB282
accent
#AB43E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2F64C4

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

Preview Lab → · Contrast checker → · Palette generator →

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