#2F52B7#2F52B7

#2F52B7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.165 H 265.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2F52B7
RGBrgb(47, 82, 183)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 74%, 72%)
CMYKcmyk(74.3%, 55.2%, 0%, 28.2%)
CIE-LABlab(37.94, 23.33, -57.13)
CIE-LCHlch(37.94, 61.71, 292.21°)
OKLaboklab(47.36% -0.012 -0.1646)
OKLCHoklch(47.36% 0.165 265.8)
XYZxyz(12.7338, 10.0564, 46.0605)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B7 #B7942F
analogous
#2F96B7 #2F52B7 #502FB7
triadic
#2F52B7 #B72F52 #52B72F
tetradic
#2F52B7 #B72F96 #B7942F #2FB750
square
#2F52B7 #B72F96 #B7942F #2FB750
split-complementary
#2F52B7 #B7502F #96B72F
monochromatic
#162656 #223C86 #2F52B7 #5172D2 #829ADF

Accessibility & contrast

On white

6.97
#2F52B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2F52B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52B7
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B7#FFFFFF#000000##FFFFFF
##2F52B71.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f52b7;
/* rgb */ color: rgb(47, 82, 183);
/* oklch */ color: oklch(47.4% 0.165 265.8);
Tailwind
colors: {
  custom: {
    50: '#7b82cd',
    500: '#2f52b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b7;
$custom-light: #7b82cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b7",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 183
  },
  "hsl": {
    "h": 224.559,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47355,
    "c": 0.16508,
    "h": 265.8
  },
  "luminance": 0.10058
}

Semantic roles & 50–950 ramp

primary
#2F52B7
secondary
#C8B47A
accent
#BA45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F52B7

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

Preview Lab → · Contrast checker → · Palette generator →

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