#2F52A2#2F52A2

#2F52A2 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.136 H 264.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#2F52A2
RGBrgb(47, 82, 162)
HSLhsl(222, 55%, 41%)
HSVhsv(222, 71%, 64%)
CMYKcmyk(71%, 49.4%, 0%, 36.5%)
CIE-LABlab(36.45, 15.40, -47.08)
CIE-LCHlch(36.45, 49.53, 288.11°)
OKLaboklab(45.75% -0.0141 -0.1351)
OKLCHoklch(45.75% 0.136 264)
XYZxyz(10.7089, 9.2465, 35.3958)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52A2 #A27F2F
analogous
#2F8BA2 #2F52A2 #452FA2
triadic
#2F52A2 #A22F52 #52A22F
tetradic
#2F52A2 #A22F8B #A27F2F #2FA245
square
#2F52A2 #A22F8B #A27F2F #2FA245
split-complementary
#2F52A2 #A2452F #8BA22F
monochromatic
#132243 #213A73 #2F52A2 #456DC9 #7592D7

Accessibility & contrast

On white

7.37
#2F52A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2F52A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52A2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52A2#FFFFFF#000000##FFFFFF
##2F52A21.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA5
Deuteranopia (green-blind)
#0251A0
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f52a2;
/* rgb */ color: rgb(47, 82, 162);
/* oklch */ color: oklch(45.8% 0.136 264.0);
Tailwind
colors: {
  custom: {
    50: '#7682be',
    500: '#2f52a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f52a2;
$custom-light: #7682be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52a2",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 221.739,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.13581,
    "h": 264
  },
  "luminance": 0.09248
}

Semantic roles & 50–950 ramp

primary
#2F52A2
secondary
#BFA66E
accent
#B149DE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F52A2

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

Preview Lab → · Contrast checker → · Palette generator →

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