#2F52BC#2F52BC

#2F52BC is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.172 H 266.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2F52BC
RGBrgb(47, 82, 188)
HSLhsl(225, 60%, 46%)
HSVhsv(225, 75%, 74%)
CMYKcmyk(75%, 56.4%, 0%, 26.3%)
CIE-LABlab(38.32, 25.21, -59.45)
CIE-LCHlch(38.32, 64.58, 292.98°)
OKLaboklab(47.76% -0.0117 -0.1715)
OKLCHoklch(47.76% 0.172 266.1)
XYZxyz(13.2635, 10.2683, 48.8502)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52BC #BC992F
analogous
#2F98BC #2F52BC #522FBC
triadic
#2F52BC #BC2F52 #52BC2F
tetradic
#2F52BC #BC2F98 #BC992F #2FBC52
square
#2F52BC #BC2F98 #BC992F #2FBC52
split-complementary
#2F52BC #BC522F #98BC2F
monochromatic
#17275A #233D8B #2F52BC #5474D4 #859CE0

Accessibility & contrast

On white

6.88
#2F52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2F52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52BC
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52BC#FFFFFF#000000##FFFFFF
##2F52BC1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f52bc;
/* rgb */ color: rgb(47, 82, 188);
/* oklch */ color: oklch(47.8% 0.172 266.1);
Tailwind
colors: {
  custom: {
    50: '#7c82d1',
    500: '#2f52bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f52bc;
$custom-light: #7c82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52bc",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 225.106,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47757,
    "c": 0.17187,
    "h": 266.1
  },
  "luminance": 0.1027
}

Semantic roles & 50–950 ramp

primary
#2F52BC
secondary
#CAB77D
accent
#BC45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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