#2F52BB#2F52BB

#2F52BB is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.171 H 266.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#2F52BB
RGBrgb(47, 82, 187)
HSLhsl(225, 60%, 46%)
HSVhsv(225, 75%, 73%)
CMYKcmyk(74.9%, 56.1%, 0%, 26.7%)
CIE-LABlab(38.24, 24.83, -58.99)
CIE-LCHlch(38.24, 64.00, 292.83°)
OKLaboklab(47.68% -0.0117 -0.1701)
OKLCHoklch(47.68% 0.171 266.1)
XYZxyz(13.1561, 10.2253, 48.2844)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52BB #BB982F
analogous
#2F98BB #2F52BB #522FBB
triadic
#2F52BB #BB2F52 #52BB2F
tetradic
#2F52BB #BB2F98 #BB982F #2FBB52
square
#2F52BB #BB2F98 #BB982F #2FBB52
split-complementary
#2F52BB #BB522F #98BB2F
monochromatic
#162759 #233D8A #2F52BB #5373D4 #849BE0

Accessibility & contrast

On white

6.90
#2F52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F52BB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52BB#FFFFFF#000000##FFFFFF
##2F52BB1.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f52bb;
/* rgb */ color: rgb(47, 82, 187);
/* oklch */ color: oklch(47.7% 0.171 266.1);
Tailwind
colors: {
  custom: {
    50: '#7b82d0',
    500: '#2f52bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f52bb;
$custom-light: #7b82d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52bb",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 225,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.17051,
    "h": 266.1
  },
  "luminance": 0.10227
}

Semantic roles & 50–950 ramp

primary
#2F52BB
secondary
#C9B67C
accent
#BB45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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