#2F64B8#2F64B8

#2F64B8 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.3% C 0.144 H 259.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#2F64B8
RGBrgb(47, 100, 184)
HSLhsl(217, 59%, 45%)
HSVhsv(217, 74%, 72%)
CMYKcmyk(74.5%, 45.7%, 0%, 27.8%)
CIE-LABlab(43.03, 11.97, -49.51)
CIE-LCHlch(43.03, 50.94, 283.60°)
OKLaboklab(51.26% -0.0267 -0.1419)
OKLCHoklch(51.26% 0.144 259.3)
XYZxyz(14.3781, 13.1778, 47.1239)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64B8 #B8832F
analogous
#2FA8B8 #2F64B8 #3E2FB8
triadic
#2F64B8 #B82F64 #64B82F
tetradic
#2F64B8 #B82FA8 #B8832F #2FB83E
square
#2F64B8 #B82FA8 #B8832F #2FB83E
split-complementary
#2F64B8 #B83E2F #A8B82F
monochromatic
#162F57 #234A87 #2F64B8 #5283D3 #82A6DF

Accessibility & contrast

On white

5.78
#2F64B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#2F64B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64B8
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64B8#FFFFFF#000000##FFFFFF
##2F64B81.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396CBB
Deuteranopia (green-blind)
#1B60B6
Tritanopia (blue-blind)
#007885
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f64b8;
/* rgb */ color: rgb(47, 100, 184);
/* oklch */ color: oklch(51.3% 0.144 259.3);
Tailwind
colors: {
  custom: {
    50: '#7a8fce',
    500: '#2f64b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f64b8;
$custom-light: #7a8fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64b8",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 184
  },
  "hsl": {
    "h": 216.788,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51257,
    "c": 0.14438,
    "h": 259.3
  },
  "luminance": 0.13179
}

Semantic roles & 50–950 ramp

primary
#2F64B8
secondary
#C8AA7B
accent
#A645E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #2F64B8

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

Preview Lab → · Contrast checker → · Palette generator →

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