#2F52BE#2F52BE

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

Color values

HEX#2F52BE
RGBrgb(47, 82, 190)
HSLhsl(225, 60%, 46%)
HSVhsv(225, 75%, 75%)
CMYKcmyk(75.3%, 56.8%, 0%, 25.5%)
CIE-LABlab(38.47, 25.96, -60.38)
CIE-LCHlch(38.47, 65.72, 293.26°)
OKLaboklab(47.92% -0.0116 -0.1742)
OKLCHoklch(47.92% 0.175 266.2)
XYZxyz(13.4806, 10.3551, 49.9935)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52BE #BE9B2F
analogous
#2F9ABE #2F52BE #542FBE
triadic
#2F52BE #BE2F52 #52BE2F
tetradic
#2F52BE #BE2F9A #BE9B2F #2FBE54
square
#2F52BE #BE2F9A #BE9B2F #2FBE54
split-complementary
#2F52BE #BE542F #9ABE2F
monochromatic
#17285C #233D8D #2F52BE #5574D5 #869DE1

Accessibility & contrast

On white

6.84
#2F52BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F52BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52BE
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52BE#FFFFFF#000000##FFFFFF
##2F52BE1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f52be;
/* rgb */ color: rgb(47, 82, 190);
/* oklch */ color: oklch(47.9% 0.175 266.2);
Tailwind
colors: {
  custom: {
    50: '#7c82d2',
    500: '#2f52be',
    950: '#000000',
  },
}
SCSS
$custom: #2f52be;
$custom-light: #7c82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52be",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 225.315,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47919,
    "c": 0.17456,
    "h": 266.2
  },
  "luminance": 0.10357
}

Semantic roles & 50–950 ramp

primary
#2F52BE
secondary
#CBB87E
accent
#BD44E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F52BE

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

Preview Lab → · Contrast checker → · Palette generator →

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