#2F50A1#2F50A1

#2F50A1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.137 H 264.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2F50A1
RGBrgb(47, 80, 161)
HSLhsl(223, 55%, 41%)
HSVhsv(223, 71%, 63%)
CMYKcmyk(70.8%, 50.3%, 0%, 36.9%)
CIE-LABlab(35.82, 16.34, -47.51)
CIE-LCHlch(35.82, 50.24, 288.99°)
OKLaboklab(45.24% -0.0124 -0.1364)
OKLCHoklch(45.24% 0.137 264.8)
XYZxyz(10.4717, 8.9138, 34.8800)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50A1 #A1802F
analogous
#2F89A1 #2F50A1 #472FA1
triadic
#2F50A1 #A12F50 #50A12F
tetradic
#2F50A1 #A12F89 #A1802F #2FA147
square
#2F50A1 #A12F89 #A1802F #2FA147
split-complementary
#2F50A1 #A1472F #89A12F
monochromatic
#132142 #213872 #2F50A1 #456BC9 #7490D6

Accessibility & contrast

On white

7.55
#2F50A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2F50A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50A1
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50A1#FFFFFF#000000##FFFFFF
##2F50A11.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f50a1;
/* rgb */ color: rgb(47, 80, 161);
/* oklch */ color: oklch(45.2% 0.137 264.8);
Tailwind
colors: {
  custom: {
    50: '#7680bd',
    500: '#2f50a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f50a1;
$custom-light: #7680bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50a1",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 161
  },
  "hsl": {
    "h": 222.632,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45244,
    "c": 0.13693,
    "h": 264.8
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#2F50A1
secondary
#BEA76E
accent
#B34ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F50A1

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

Preview Lab → · Contrast checker → · Palette generator →

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