#2F52AC#2F52AC

#2F52AC is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.150 H 265.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2F52AC
RGBrgb(47, 82, 172)
HSLhsl(223, 57%, 43%)
HSVhsv(223, 73%, 67%)
CMYKcmyk(72.7%, 52.3%, 0%, 32.5%)
CIE-LABlab(37.14, 19.18, -51.93)
CIE-LCHlch(37.14, 55.35, 290.27°)
OKLaboklab(46.5% -0.0129 -0.1493)
OKLCHoklch(46.5% 0.15 265.1)
XYZxyz(11.6334, 9.6163, 40.2647)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52AC #AC892F
analogous
#2F90AC #2F52AC #4A2FAC
triadic
#2F52AC #AC2F52 #52AC2F
tetradic
#2F52AC #AC2F90 #AC892F #2FAC4A
square
#2F52AC #AC2F90 #AC892F #2FAC4A
split-complementary
#2F52AC #AC4A2F #90AC2F
monochromatic
#15244C #223B7C #2F52AC #4B6FCE #7B96DB

Accessibility & contrast

On white

7.18
#2F52AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F52AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52AC
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52AC#FFFFFF#000000##FFFFFF
##2F52AC1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175DAF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f52ac;
/* rgb */ color: rgb(47, 82, 172);
/* oklch */ color: oklch(46.5% 0.150 265.1);
Tailwind
colors: {
  custom: {
    50: '#7882c5',
    500: '#2f52ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f52ac;
$custom-light: #7882c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52ac",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 223.2,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46497,
    "c": 0.14989,
    "h": 265.1
  },
  "luminance": 0.09617
}

Semantic roles & 50–950 ramp

primary
#2F52AC
secondary
#C3AD74
accent
#B647E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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