#2F52AA#2F52AA

#2F52AA is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.3% C 0.147 H 264.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2F52AA
RGBrgb(47, 82, 170)
HSLhsl(223, 57%, 43%)
HSVhsv(223, 72%, 67%)
CMYKcmyk(72.4%, 51.8%, 0%, 33.3%)
CIE-LABlab(37.00, 18.42, -50.97)
CIE-LCHlch(37.00, 54.19, 289.87°)
OKLaboklab(46.35% -0.0131 -0.1465)
OKLCHoklch(46.35% 0.147 264.9)
XYZxyz(11.4427, 9.5400, 39.2608)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52AA #AA872F
analogous
#2F8FAA #2F52AA #4A2FAA
triadic
#2F52AA #AA2F52 #52AA2F
tetradic
#2F52AA #AA2F8F #AA872F #2FAA4A
square
#2F52AA #AA2F8F #AA872F #2FAA4A
split-complementary
#2F52AA #AA4A2F #8FAA2F
monochromatic
#14244A #223B7A #2F52AA #496FCD #7995DA

Accessibility & contrast

On white

7.22
#2F52AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F52AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52AA
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52AA#FFFFFF#000000##FFFFFF
##2F52AA1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5DAD
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f52aa;
/* rgb */ color: rgb(47, 82, 170);
/* oklch */ color: oklch(46.3% 0.147 264.9);
Tailwind
colors: {
  custom: {
    50: '#7882c4',
    500: '#2f52aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f52aa;
$custom-light: #7882c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52aa",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 222.927,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46346,
    "c": 0.14709,
    "h": 264.9
  },
  "luminance": 0.09541
}

Semantic roles & 50–950 ramp

primary
#2F52AA
secondary
#C2AC72
accent
#B548E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F52AA

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

Preview Lab → · Contrast checker → · Palette generator →

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