#2F52A3#2F52A3

#2F52A3 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.8% C 0.137 H 264.1°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2F52A3
RGBrgb(47, 82, 163)
HSLhsl(222, 55%, 41%)
HSVhsv(222, 71%, 64%)
CMYKcmyk(71.2%, 49.7%, 0%, 36.1%)
CIE-LABlab(36.52, 15.77, -47.57)
CIE-LCHlch(36.52, 50.12, 288.35°)
OKLaboklab(45.83% -0.014 -0.1365)
OKLCHoklch(45.83% 0.137 264.1)
XYZxyz(10.7981, 9.2822, 35.8658)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52A3 #A3802F
analogous
#2F8CA3 #2F52A3 #462FA3
triadic
#2F52A3 #A32F52 #52A32F
tetradic
#2F52A3 #A32F8C #A3802F #2FA346
square
#2F52A3 #A32F8C #A3802F #2FA346
split-complementary
#2F52A3 #A3462F #8CA32F
monochromatic
#142244 #213A73 #2F52A3 #466DCA #7593D7

Accessibility & contrast

On white

7.35
#2F52A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2F52A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52A3
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52A3#FFFFFF#000000##FFFFFF
##2F52A31.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255CA6
Deuteranopia (green-blind)
#0051A1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f52a3;
/* rgb */ color: rgb(47, 82, 163);
/* oklch */ color: oklch(45.8% 0.137 264.1);
Tailwind
colors: {
  custom: {
    50: '#7682bf',
    500: '#2f52a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f52a3;
$custom-light: #7682bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52a3",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 163
  },
  "hsl": {
    "h": 221.897,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45825,
    "c": 0.13723,
    "h": 264.1
  },
  "luminance": 0.09283
}

Semantic roles & 50–950 ramp

primary
#2F52A3
secondary
#BFA76F
accent
#B249DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F52A3

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

Preview Lab → · Contrast checker → · Palette generator →

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