#2F52A1#2F52A1

#2F52A1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.134 H 263.9°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#2F52A1
RGBrgb(47, 82, 161)
HSLhsl(222, 55%, 41%)
HSVhsv(222, 71%, 63%)
CMYKcmyk(70.8%, 49.1%, 0%, 36.9%)
CIE-LABlab(36.39, 15.02, -46.59)
CIE-LCHlch(36.39, 48.95, 287.87°)
OKLaboklab(45.68% -0.0143 -0.1336)
OKLCHoklch(45.68% 0.134 263.9)
XYZxyz(10.6203, 9.2110, 34.9295)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52A1 #A17E2F
analogous
#2F8BA1 #2F52A1 #452FA1
triadic
#2F52A1 #A12F52 #52A12F
tetradic
#2F52A1 #A12F8B #A17E2F #2FA145
square
#2F52A1 #A12F8B #A17E2F #2FA145
split-complementary
#2F52A1 #A1452F #8BA12F
monochromatic
#132242 #213A72 #2F52A1 #456DC9 #7492D6

Accessibility & contrast

On white

7.39
#2F52A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2F52A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52A1
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52A1#FFFFFF#000000##FFFFFF
##2F52A11.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275BA4
Deuteranopia (green-blind)
#06519F
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f52a1;
/* rgb */ color: rgb(47, 82, 161);
/* oklch */ color: oklch(45.7% 0.134 263.9);
Tailwind
colors: {
  custom: {
    50: '#7682bd',
    500: '#2f52a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f52a1;
$custom-light: #7682bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52a1",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 161
  },
  "hsl": {
    "h": 221.579,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45679,
    "c": 0.13438,
    "h": 263.9
  },
  "luminance": 0.09212
}

Semantic roles & 50–950 ramp

primary
#2F52A1
secondary
#BEA56E
accent
#B14ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F52A1

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

Preview Lab → · Contrast checker → · Palette generator →

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