#2F52AF#2F52AF

#2F52AF is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.154 H 265.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#2F52AF
RGBrgb(47, 82, 175)
HSLhsl(224, 58%, 44%)
HSVhsv(224, 73%, 69%)
CMYKcmyk(73.1%, 53.1%, 0%, 31.4%)
CIE-LABlab(37.36, 20.31, -53.36)
CIE-LCHlch(37.36, 57.09, 290.84°)
OKLaboklab(46.73% -0.0126 -0.1535)
OKLCHoklch(46.73% 0.154 265.3)
XYZxyz(11.9247, 9.7328, 41.7993)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52AF #AF8C2F
analogous
#2F92AF #2F52AF #4C2FAF
triadic
#2F52AF #AF2F52 #52AF2F
tetradic
#2F52AF #AF2F92 #AF8C2F #2FAF4C
square
#2F52AF #AF2F92 #AF8C2F #2FAF4C
split-complementary
#2F52AF #AF4C2F #92AF2F
monochromatic
#15254F #223B7F #2F52AF #4C70CF #7C97DC

Accessibility & contrast

On white

7.13
#2F52AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F52AF
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52AF#FFFFFF#000000##FFFFFF
##2F52AF1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105EB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f52af;
/* rgb */ color: rgb(47, 82, 175);
/* oklch */ color: oklch(46.7% 0.154 265.3);
Tailwind
colors: {
  custom: {
    50: '#7982c8',
    500: '#2f52af',
    950: '#000000',
  },
}
SCSS
$custom: #2f52af;
$custom-light: #7982c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52af",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 223.594,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46727,
    "c": 0.15406,
    "h": 265.3
  },
  "luminance": 0.09734
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F52AF

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

Preview Lab → · Contrast checker → · Palette generator →

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