#2F52AB#2F52AB

#2F52AB is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.4% C 0.148 H 265.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2F52AB
RGBrgb(47, 82, 171)
HSLhsl(223, 57%, 43%)
HSVhsv(223, 73%, 67%)
CMYKcmyk(72.5%, 52%, 0%, 32.9%)
CIE-LABlab(37.07, 18.80, -51.45)
CIE-LCHlch(37.07, 54.77, 290.08°)
OKLaboklab(46.42% -0.013 -0.1479)
OKLCHoklch(46.42% 0.148 265)
XYZxyz(11.5377, 9.5780, 39.7609)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52AB #AB882F
analogous
#2F90AB #2F52AB #4A2FAB
triadic
#2F52AB #AB2F52 #52AB2F
tetradic
#2F52AB #AB2F90 #AB882F #2FAB4A
square
#2F52AB #AB2F90 #AB882F #2FAB4A
split-complementary
#2F52AB #AB4A2F #90AB2F
monochromatic
#15244B #223B7B #2F52AB #4A6FCD #7A95DA

Accessibility & contrast

On white

7.20
#2F52AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F52AB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52AB#FFFFFF#000000##FFFFFF
##2F52AB1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAE
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f52ab;
/* rgb */ color: rgb(47, 82, 171);
/* oklch */ color: oklch(46.4% 0.148 265.0);
Tailwind
colors: {
  custom: {
    50: '#7882c5',
    500: '#2f52ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f52ab;
$custom-light: #7882c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52ab",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 223.065,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46421,
    "c": 0.14849,
    "h": 265
  },
  "luminance": 0.09579
}

Semantic roles & 50–950 ramp

primary
#2F52AB
secondary
#C3AC73
accent
#B548E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F52AB

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

Preview Lab → · Contrast checker → · Palette generator →

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