#2F52B0#2F52B0

#2F52B0 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.8% C 0.155 H 265.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2F52B0
RGBrgb(47, 82, 176)
HSLhsl(224, 58%, 44%)
HSVhsv(224, 73%, 69%)
CMYKcmyk(73.3%, 53.4%, 0%, 31%)
CIE-LABlab(37.43, 20.69, -53.83)
CIE-LCHlch(37.43, 57.67, 291.02°)
OKLaboklab(46.81% -0.0125 -0.1549)
OKLCHoklch(46.81% 0.155 265.4)
XYZxyz(12.0233, 9.7722, 42.3185)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B0 #B08D2F
analogous
#2F92B0 #2F52B0 #4C2FB0
triadic
#2F52B0 #B02F52 #52B02F
tetradic
#2F52B0 #B02F92 #B08D2F #2FB04C
square
#2F52B0 #B02F92 #B08D2F #2FB04C
split-complementary
#2F52B0 #B04C2F #92B02F
monochromatic
#15254F #223B80 #2F52B0 #4D70CF #7D97DC

Accessibility & contrast

On white

7.11
#2F52B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F52B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52B0
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B0#FFFFFF#000000##FFFFFF
##2F52B01.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5EB3
Deuteranopia (green-blind)
#0052AE
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f52b0;
/* rgb */ color: rgb(47, 82, 176);
/* oklch */ color: oklch(46.8% 0.155 265.4);
Tailwind
colors: {
  custom: {
    50: '#7982c8',
    500: '#2f52b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b0;
$custom-light: #7982c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b0",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 176
  },
  "hsl": {
    "h": 223.721,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46805,
    "c": 0.15545,
    "h": 265.4
  },
  "luminance": 0.09774
}

Semantic roles & 50–950 ramp

primary
#2F52B0
secondary
#C5AF76
accent
#B747E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F52B0

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

Preview Lab → · Contrast checker → · Palette generator →

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