#2F52B8#2F52B8

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

Color values

HEX#2F52B8
RGBrgb(47, 82, 184)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 74%, 72%)
CMYKcmyk(74.5%, 55.4%, 0%, 27.8%)
CIE-LABlab(38.02, 23.71, -57.60)
CIE-LCHlch(38.02, 62.28, 292.37°)
OKLaboklab(47.44% -0.0119 -0.166)
OKLCHoklch(47.44% 0.166 265.9)
XYZxyz(12.8383, 10.0982, 46.6106)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B8 #B8952F
analogous
#2F96B8 #2F52B8 #512FB8
triadic
#2F52B8 #B82F52 #52B82F
tetradic
#2F52B8 #B82F96 #B8952F #2FB851
square
#2F52B8 #B82F96 #B8952F #2FB851
split-complementary
#2F52B8 #B8512F #96B82F
monochromatic
#162757 #233C87 #2F52B8 #5273D3 #829ADF

Accessibility & contrast

On white

6.95
#2F52B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2F52B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52B8
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B8#FFFFFF#000000##FFFFFF
##2F52B81.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f52b8;
/* rgb */ color: rgb(47, 82, 184);
/* oklch */ color: oklch(47.4% 0.166 265.9);
Tailwind
colors: {
  custom: {
    50: '#7b82ce',
    500: '#2f52b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b8;
$custom-light: #7b82ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b8",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 184
  },
  "hsl": {
    "h": 224.672,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47435,
    "c": 0.16644,
    "h": 265.9
  },
  "luminance": 0.101
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F52B8

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

Preview Lab → · Contrast checker → · Palette generator →

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