#2F54BB#2F54BB

#2F54BB is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.1% C 0.168 H 265.5°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2F54BB
RGBrgb(47, 84, 187)
HSLhsl(224, 60%, 46%)
HSVhsv(224, 75%, 73%)
CMYKcmyk(74.9%, 55.1%, 0%, 26.7%)
CIE-LABlab(38.78, 23.52, -58.12)
CIE-LCHlch(38.78, 62.70, 292.03°)
OKLaboklab(48.08% -0.0132 -0.1675)
OKLCHoklch(48.08% 0.168 265.5)
XYZxyz(13.3091, 10.5314, 48.3354)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54BB #BB962F
analogous
#2F9ABB #2F54BB #502FBB
triadic
#2F54BB #BB2F54 #54BB2F
tetradic
#2F54BB #BB2F9A #BB962F #2FBB50
square
#2F54BB #BB2F9A #BB962F #2FBB50
split-complementary
#2F54BB #BB502F #9ABB2F
monochromatic
#162859 #233E8A #2F54BB #5375D4 #849DE0

Accessibility & contrast

On white

6.76
#2F54BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F54BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54BB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54BB#FFFFFF#000000##FFFFFF
##2F54BB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f54bb;
/* rgb */ color: rgb(47, 84, 187);
/* oklch */ color: oklch(48.1% 0.168 265.5);
Tailwind
colors: {
  custom: {
    50: '#7b83d0',
    500: '#2f54bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f54bb;
$custom-light: #7b83d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54bb",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 224.143,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48079,
    "c": 0.16804,
    "h": 265.5
  },
  "luminance": 0.10533
}

Semantic roles & 50–950 ramp

primary
#2F54BB
secondary
#C9B57C
accent
#B945E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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