#2F64C5#2F64C5

#2F64C5 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.2% C 0.162 H 261.2°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#2F64C5
RGBrgb(47, 100, 197)
HSLhsl(219, 61%, 48%)
HSVhsv(219, 76%, 77%)
CMYKcmyk(76.1%, 49.2%, 0%, 22.7%)
CIE-LABlab(43.87, 16.89, -55.70)
CIE-LCHlch(43.87, 58.21, 286.86°)
OKLaboklab(52.17% -0.0247 -0.1601)
OKLCHoklch(52.17% 0.162 261.2)
XYZxyz(15.8039, 13.7481, 54.6332)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64C5 #C5902F
analogous
#2FAFC5 #2F64C5 #452FC5
triadic
#2F64C5 #C52F64 #64C52F
tetradic
#2F64C5 #C52FAF #C5902F #2FC545
square
#2F64C5 #C52FAF #C5902F #2FC545
split-complementary
#2F64C5 #C5452F #AFC52F
monochromatic
#173262 #234B94 #2F64C5 #5A86D8 #8BAAE3

Accessibility & contrast

On white

5.60
#2F64C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#2F64C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64C5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64C5#FFFFFF#000000##FFFFFF
##2F64C51.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6FC9
Deuteranopia (green-blind)
#0061C3
Tritanopia (blue-blind)
#007B8B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2f64c5;
/* rgb */ color: rgb(47, 100, 197);
/* oklch */ color: oklch(52.2% 0.162 261.2);
Tailwind
colors: {
  custom: {
    50: '#7d8fd7',
    500: '#2f64c5',
    950: '#000000',
  },
}
SCSS
$custom: #2f64c5;
$custom-light: #7d8fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64c5",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 197
  },
  "hsl": {
    "h": 218.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52171,
    "c": 0.16201,
    "h": 261.2
  },
  "luminance": 0.1375
}

Semantic roles & 50–950 ramp

primary
#2F64C5
secondary
#CDB382
accent
#AC43E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2F64C5

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

Preview Lab → · Contrast checker → · Palette generator →

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