#2F52B9#2F52B9

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

Color values

HEX#2F52B9
RGBrgb(47, 82, 185)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 75%, 73%)
CMYKcmyk(74.6%, 55.7%, 0%, 27.5%)
CIE-LABlab(38.09, 24.08, -58.06)
CIE-LCHlch(38.09, 62.86, 292.53°)
OKLaboklab(47.52% -0.0119 -0.1674)
OKLCHoklch(47.52% 0.168 265.9)
XYZxyz(12.9435, 10.1403, 47.1647)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B9 #B9962F
analogous
#2F97B9 #2F52B9 #512FB9
triadic
#2F52B9 #B92F52 #52B92F
tetradic
#2F52B9 #B92F97 #B9962F #2FB951
square
#2F52B9 #B92F97 #B9962F #2FB951
split-complementary
#2F52B9 #B9512F #97B92F
monochromatic
#162757 #233C88 #2F52B9 #5273D3 #839ADF

Accessibility & contrast

On white

6.93
#2F52B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F52B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52B9
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B9#FFFFFF#000000##FFFFFF
##2F52B91.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f52b9;
/* rgb */ color: rgb(47, 82, 185);
/* oklch */ color: oklch(47.5% 0.168 265.9);
Tailwind
colors: {
  custom: {
    50: '#7b82cf',
    500: '#2f52b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b9;
$custom-light: #7b82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b9",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 185
  },
  "hsl": {
    "h": 224.783,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47515,
    "c": 0.1678,
    "h": 265.9
  },
  "luminance": 0.10142
}

Semantic roles & 50–950 ramp

primary
#2F52B9
secondary
#C9B57B
accent
#BB45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F52B9

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

Preview Lab → · Contrast checker → · Palette generator →

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