#2F52BA#2F52BA

#2F52BA is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.169 H 266.0°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2F52BA
RGBrgb(47, 82, 186)
HSLhsl(225, 60%, 46%)
HSVhsv(225, 75%, 73%)
CMYKcmyk(74.7%, 55.9%, 0%, 27.1%)
CIE-LABlab(38.17, 24.46, -58.53)
CIE-LCHlch(38.17, 63.43, 292.68°)
OKLaboklab(47.6% -0.0118 -0.1687)
OKLCHoklch(47.6% 0.169 266)
XYZxyz(13.0494, 10.1827, 47.7226)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52BA #BA972F
analogous
#2F97BA #2F52BA #512FBA
triadic
#2F52BA #BA2F52 #52BA2F
tetradic
#2F52BA #BA2F97 #BA972F #2FBA51
square
#2F52BA #BA2F97 #BA972F #2FBA51
split-complementary
#2F52BA #BA512F #97BA2F
monochromatic
#162758 #233C89 #2F52BA #5373D3 #849BE0

Accessibility & contrast

On white

6.92
#2F52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2F52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52BA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52BA#FFFFFF#000000##FFFFFF
##2F52BA1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f52ba;
/* rgb */ color: rgb(47, 82, 186);
/* oklch */ color: oklch(47.6% 0.169 266.0);
Tailwind
colors: {
  custom: {
    50: '#7b82cf',
    500: '#2f52ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f52ba;
$custom-light: #7b82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52ba",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 224.892,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47595,
    "c": 0.16916,
    "h": 266
  },
  "luminance": 0.10184
}

Semantic roles & 50–950 ramp

primary
#2F52BA
secondary
#C9B67C
accent
#BB45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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