#2F52AE#2F52AE

#2F52AE is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.153 H 265.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#2F52AE
RGBrgb(47, 82, 174)
HSLhsl(223, 57%, 43%)
HSVhsv(223, 73%, 68%)
CMYKcmyk(73%, 52.9%, 0%, 31.8%)
CIE-LABlab(37.29, 19.94, -52.88)
CIE-LCHlch(37.29, 56.52, 290.66°)
OKLaboklab(46.65% -0.0127 -0.1521)
OKLCHoklch(46.65% 0.153 265.2)
XYZxyz(11.8269, 9.6937, 41.2840)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52AE #AE8B2F
analogous
#2F91AE #2F52AE #4C2FAE
triadic
#2F52AE #AE2F52 #52AE2F
tetradic
#2F52AE #AE2F91 #AE8B2F #2FAE4C
square
#2F52AE #AE2F91 #AE8B2F #2FAE4C
split-complementary
#2F52AE #AE4C2F #91AE2F
monochromatic
#15254E #223B7E #2F52AE #4C70CF #7C96DC

Accessibility & contrast

On white

7.15
#2F52AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2F52AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52AE
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52AE#FFFFFF#000000##FFFFFF
##2F52AE1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135EB1
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f52ae;
/* rgb */ color: rgb(47, 82, 174);
/* oklch */ color: oklch(46.7% 0.153 265.2);
Tailwind
colors: {
  custom: {
    50: '#7982c7',
    500: '#2f52ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f52ae;
$custom-light: #7982c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52ae",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 174
  },
  "hsl": {
    "h": 223.465,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4665,
    "c": 0.15267,
    "h": 265.2
  },
  "luminance": 0.09695
}

Semantic roles & 50–950 ramp

primary
#2F52AE
secondary
#C4AE75
accent
#B647E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F52AE

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

Preview Lab → · Contrast checker → · Palette generator →

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