#2F64B2#2F64B2

#2F64B2 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 50.9% C 0.136 H 258.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2F64B2
RGBrgb(47, 100, 178)
HSLhsl(216, 58%, 44%)
HSVhsv(216, 74%, 70%)
CMYKcmyk(73.6%, 43.8%, 0%, 30.2%)
CIE-LABlab(42.66, 9.71, -46.59)
CIE-LCHlch(42.66, 47.59, 281.77°)
OKLaboklab(50.85% -0.0278 -0.1333)
OKLCHoklch(50.85% 0.136 258.2)
XYZxyz(13.7624, 12.9315, 43.8816)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F64B2 #B27D2F
analogous
#2FA6B2 #2F64B2 #3C2FB2
triadic
#2F64B2 #B22F64 #64B22F
tetradic
#2F64B2 #B22FA6 #B27D2F #2FB23C
square
#2F64B2 #B22FA6 #B27D2F #2FB23C
split-complementary
#2F64B2 #B23C2F #A6B22F
monochromatic
#152E51 #224982 #2F64B2 #4E83D0 #7EA5DD

Accessibility & contrast

On white

5.86
#2F64B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2F64B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F64B2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F64B2#FFFFFF#000000##FFFFFF
##2F64B21.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB5
Deuteranopia (green-blind)
#255FB0
Tritanopia (blue-blind)
#007682
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f64b2;
/* rgb */ color: rgb(47, 100, 178);
/* oklch */ color: oklch(50.9% 0.136 258.2);
Tailwind
colors: {
  custom: {
    50: '#798fc9',
    500: '#2f64b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f64b2;
$custom-light: #798fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f64b2",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 178
  },
  "hsl": {
    "h": 215.725,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50852,
    "c": 0.1362,
    "h": 258.2
  },
  "luminance": 0.12933
}

Semantic roles & 50–950 ramp

primary
#2F64B2
secondary
#C6A677
accent
#A346E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F64B2

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

Preview Lab → · Contrast checker → · Palette generator →

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