#2F52BF#2F52BF

#2F52BF is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.176 H 266.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2F52BF
RGBrgb(47, 82, 191)
HSLhsl(225, 61%, 47%)
HSVhsv(225, 75%, 75%)
CMYKcmyk(75.4%, 57.1%, 0%, 25.1%)
CIE-LABlab(38.55, 26.33, -60.84)
CIE-LCHlch(38.55, 66.29, 293.40°)
OKLaboklab(48% -0.0115 -0.1755)
OKLCHoklch(48% 0.176 266.2)
XYZxyz(13.5903, 10.3990, 50.5711)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52BF #BF9C2F
analogous
#2F9ABF #2F52BF #542FBF
triadic
#2F52BF #BF2F52 #52BF2F
tetradic
#2F52BF #BF2F9A #BF9C2F #2FBF54
square
#2F52BF #BF2F9A #BF9C2F #2FBF54
split-complementary
#2F52BF #BF542F #9ABF2F
monochromatic
#17285D #233D8E #2F52BF #5675D5 #879DE1

Accessibility & contrast

On white

6.82
#2F52BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2F52BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52BF
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52BF#FFFFFF#000000##FFFFFF
##2F52BF1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f52bf;
/* rgb */ color: rgb(47, 82, 191);
/* oklch */ color: oklch(48.0% 0.176 266.2);
Tailwind
colors: {
  custom: {
    50: '#7c82d3',
    500: '#2f52bf',
    950: '#000000',
  },
}
SCSS
$custom: #2f52bf;
$custom-light: #7c82d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52bf",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 225.417,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48001,
    "c": 0.17591,
    "h": 266.2
  },
  "luminance": 0.10401
}

Semantic roles & 50–950 ramp

primary
#2F52BF
secondary
#CBB97F
accent
#BD44E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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