#2F54B4#2F54B4

#2F54B4 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.5% C 0.158 H 265.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2F54B4
RGBrgb(47, 84, 180)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 74%, 71%)
CMYKcmyk(73.9%, 53.3%, 0%, 29.4%)
CIE-LABlab(38.27, 20.88, -54.84)
CIE-LCHlch(38.27, 58.68, 290.85°)
OKLaboklab(47.53% -0.0138 -0.1579)
OKLCHoklch(47.53% 0.158 265)
XYZxyz(12.5779, 10.2389, 44.4846)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54B4 #B48F2F
analogous
#2F97B4 #2F54B4 #4C2FB4
triadic
#2F54B4 #B42F54 #54B42F
tetradic
#2F54B4 #B42F97 #B48F2F #2FB44C
square
#2F54B4 #B42F97 #B48F2F #2FB44C
split-complementary
#2F54B4 #B44C2F #97B42F
monochromatic
#162753 #223D83 #2F54B4 #4F73D1 #809ADE

Accessibility & contrast

On white

6.89
#2F54B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2F54B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54B4
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54B4#FFFFFF#000000##FFFFFF
##2F54B41.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D60B7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f54b4;
/* rgb */ color: rgb(47, 84, 180);
/* oklch */ color: oklch(47.5% 0.158 265.0);
Tailwind
colors: {
  custom: {
    50: '#7a83cb',
    500: '#2f54b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f54b4;
$custom-light: #7a83cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54b4",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 180
  },
  "hsl": {
    "h": 223.308,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4753,
    "c": 0.15847,
    "h": 265
  },
  "luminance": 0.1024
}

Semantic roles & 50–950 ramp

primary
#2F54B4
secondary
#C7B178
accent
#B646E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54B4

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

Preview Lab → · Contrast checker → · Palette generator →

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