#2F52B2#2F52B2

#2F52B2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.0% C 0.158 H 265.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2F52B2
RGBrgb(47, 82, 178)
HSLhsl(224, 58%, 44%)
HSVhsv(224, 74%, 70%)
CMYKcmyk(73.6%, 53.9%, 0%, 30.2%)
CIE-LABlab(37.58, 21.45, -54.78)
CIE-LCHlch(37.58, 58.83, 291.38°)
OKLaboklab(46.96% -0.0124 -0.1577)
OKLCHoklch(46.96% 0.158 265.5)
XYZxyz(12.2226, 9.8520, 43.3683)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B2 #B28F2F
analogous
#2F94B2 #2F52B2 #4D2FB2
triadic
#2F52B2 #B22F52 #52B22F
tetradic
#2F52B2 #B22F94 #B28F2F #2FB24D
square
#2F52B2 #B22F94 #B28F2F #2FB24D
split-complementary
#2F52B2 #B24D2F #94B22F
monochromatic
#152551 #223C82 #2F52B2 #4E71D0 #7E98DD

Accessibility & contrast

On white

7.07
#2F52B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2F52B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52B2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B2#FFFFFF#000000##FFFFFF
##2F52B21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065FB5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f52b2;
/* rgb */ color: rgb(47, 82, 178);
/* oklch */ color: oklch(47.0% 0.158 265.5);
Tailwind
colors: {
  custom: {
    50: '#7982ca',
    500: '#2f52b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b2;
$custom-light: #7982ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b2",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 223.969,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4696,
    "c": 0.15821,
    "h": 265.5
  },
  "luminance": 0.09853
}

Semantic roles & 50–950 ramp

primary
#2F52B2
secondary
#C6B177
accent
#B846E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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