#2F54BD#2F54BD

#2F54BD is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.2% C 0.171 H 265.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#2F54BD
RGBrgb(47, 84, 189)
HSLhsl(224, 60%, 46%)
HSVhsv(224, 75%, 74%)
CMYKcmyk(75.1%, 55.6%, 0%, 25.9%)
CIE-LABlab(38.93, 24.27, -59.05)
CIE-LCHlch(38.93, 63.84, 292.35°)
OKLaboklab(48.24% -0.0131 -0.1703)
OKLCHoklch(48.24% 0.171 265.6)
XYZxyz(13.5247, 10.6176, 49.4709)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54BD #BD982F
analogous
#2F9BBD #2F54BD #512FBD
triadic
#2F54BD #BD2F54 #54BD2F
tetradic
#2F54BD #BD2F9B #BD982F #2FBD51
square
#2F54BD #BD2F9B #BD982F #2FBD51
split-complementary
#2F54BD #BD512F #9BBD2F
monochromatic
#17285B #233E8C #2F54BD #5576D5 #869DE1

Accessibility & contrast

On white

6.72
#2F54BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2F54BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54BD
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54BD#FFFFFF#000000##FFFFFF
##2F54BD1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C1
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f54bd;
/* rgb */ color: rgb(47, 84, 189);
/* oklch */ color: oklch(48.2% 0.171 265.6);
Tailwind
colors: {
  custom: {
    50: '#7c83d2',
    500: '#2f54bd',
    950: '#000000',
  },
}
SCSS
$custom: #2f54bd;
$custom-light: #7c83d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54bd",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 224.366,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48239,
    "c": 0.17075,
    "h": 265.6
  },
  "luminance": 0.10619
}

Semantic roles & 50–950 ramp

primary
#2F54BD
secondary
#CAB67E
accent
#BA44E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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