#2F52A5#2F52A5

#2F52A5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.0% C 0.140 H 264.4°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2F52A5
RGBrgb(47, 82, 165)
HSLhsl(222, 56%, 42%)
HSVhsv(222, 72%, 65%)
CMYKcmyk(71.5%, 50.3%, 0%, 35.3%)
CIE-LABlab(36.66, 16.53, -48.55)
CIE-LCHlch(36.66, 51.28, 288.81°)
OKLaboklab(45.97% -0.0137 -0.1394)
OKLCHoklch(45.97% 0.14 264.4)
XYZxyz(10.9787, 9.3544, 36.8170)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52A5 #A5822F
analogous
#2F8DA5 #2F52A5 #472FA5
triadic
#2F52A5 #A52F52 #52A52F
tetradic
#2F52A5 #A52F8D #A5822F #2FA547
square
#2F52A5 #A52F8D #A5822F #2FA547
split-complementary
#2F52A5 #A5472F #8DA52F
monochromatic
#142346 #213A75 #2F52A5 #476ECB #7693D8

Accessibility & contrast

On white

7.31
#2F52A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2F52A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52A5
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52A5#FFFFFF#000000##FFFFFF
##2F52A51.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225CA8
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f52a5;
/* rgb */ color: rgb(47, 82, 165);
/* oklch */ color: oklch(46.0% 0.140 264.4);
Tailwind
colors: {
  custom: {
    50: '#7782c0',
    500: '#2f52a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f52a5;
$custom-light: #7782c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52a5",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 165
  },
  "hsl": {
    "h": 222.203,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.14006,
    "h": 264.4
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F52A5

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

Preview Lab → · Contrast checker → · Palette generator →

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