#2F54B6#2F54B6

#2F54B6 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.161 H 265.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2F54B6
RGBrgb(47, 84, 182)
HSLhsl(224, 59%, 45%)
HSVhsv(224, 74%, 71%)
CMYKcmyk(74.2%, 53.8%, 0%, 28.6%)
CIE-LABlab(38.41, 21.64, -55.78)
CIE-LCHlch(38.41, 59.83, 291.20°)
OKLaboklab(47.69% -0.0136 -0.1606)
OKLCHoklch(47.69% 0.161 265.2)
XYZxyz(12.7831, 10.3210, 45.5653)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54B6 #B6912F
analogous
#2F97B6 #2F54B6 #4E2FB6
triadic
#2F54B6 #B62F54 #54B62F
tetradic
#2F54B6 #B62F97 #B6912F #2FB64E
square
#2F54B6 #B62F97 #B6912F #2FB64E
split-complementary
#2F54B6 #B64E2F #97B62F
monochromatic
#162755 #223E85 #2F54B6 #5074D2 #819BDE

Accessibility & contrast

On white

6.85
#2F54B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2F54B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54B6
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54B6#FFFFFF#000000##FFFFFF
##2F54B61.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0661B9
Deuteranopia (green-blind)
#0055B4
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f54b6;
/* rgb */ color: rgb(47, 84, 182);
/* oklch */ color: oklch(47.7% 0.161 265.2);
Tailwind
colors: {
  custom: {
    50: '#7a83cd',
    500: '#2f54b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f54b6;
$custom-light: #7a83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54b6",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 182
  },
  "hsl": {
    "h": 223.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47686,
    "c": 0.16122,
    "h": 265.2
  },
  "luminance": 0.10322
}

Semantic roles & 50–950 ramp

primary
#2F54B6
secondary
#C7B279
accent
#B746E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F54B6

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

Preview Lab → · Contrast checker → · Palette generator →

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