#2F50A5#2F50A5

#2F50A5 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.143 H 265.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2F50A5
RGBrgb(47, 80, 165)
HSLhsl(223, 56%, 42%)
HSVhsv(223, 72%, 65%)
CMYKcmyk(71.5%, 51.5%, 0%, 35.3%)
CIE-LABlab(36.09, 17.86, -49.45)
CIE-LCHlch(36.09, 52.58, 289.85°)
OKLaboklab(45.54% -0.012 -0.1421)
OKLCHoklch(45.54% 0.143 265.2)
XYZxyz(10.8301, 9.0572, 36.7675)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50A5 #A5842F
analogous
#2F8BA5 #2F50A5 #492FA5
triadic
#2F50A5 #A52F50 #50A52F
tetradic
#2F50A5 #A52F8B #A5842F #2FA549
square
#2F50A5 #A52F8B #A5842F #2FA549
split-complementary
#2F50A5 #A5492F #8BA52F
monochromatic
#142246 #213975 #2F50A5 #476CCB #7692D8

Accessibility & contrast

On white

7.47
#2F50A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2F50A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50A5
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50A5#FFFFFF#000000##FFFFFF
##2F50A51.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5BA8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f50a5;
/* rgb */ color: rgb(47, 80, 165);
/* oklch */ color: oklch(45.5% 0.143 265.2);
Tailwind
colors: {
  custom: {
    50: '#7780c0',
    500: '#2f50a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f50a5;
$custom-light: #7780c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50a5",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 165
  },
  "hsl": {
    "h": 223.22,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45542,
    "c": 0.14259,
    "h": 265.2
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#2F50A5
secondary
#C0AA70
accent
#B549DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F50A5

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

Preview Lab → · Contrast checker → · Palette generator →

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