#2F54B8#2F54B8

#2F54B8 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.164 H 265.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2F54B8
RGBrgb(47, 84, 184)
HSLhsl(224, 59%, 45%)
HSVhsv(224, 74%, 72%)
CMYKcmyk(74.5%, 54.3%, 0%, 27.8%)
CIE-LABlab(38.56, 22.39, -56.72)
CIE-LCHlch(38.56, 60.98, 291.54°)
OKLaboklab(47.84% -0.0135 -0.1634)
OKLCHoklch(47.84% 0.164 265.3)
XYZxyz(12.9913, 10.4043, 46.6617)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54B8 #B8932F
analogous
#2F98B8 #2F54B8 #4F2FB8
triadic
#2F54B8 #B82F54 #54B82F
tetradic
#2F54B8 #B82F98 #B8932F #2FB84F
square
#2F54B8 #B82F98 #B8932F #2FB84F
split-complementary
#2F54B8 #B84F2F #98B82F
monochromatic
#162757 #233E87 #2F54B8 #5274D3 #829BDF

Accessibility & contrast

On white

6.82
#2F54B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2F54B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54B8
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54B8#FFFFFF#000000##FFFFFF
##2F54B81.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f54b8;
/* rgb */ color: rgb(47, 84, 184);
/* oklch */ color: oklch(47.8% 0.164 265.3);
Tailwind
colors: {
  custom: {
    50: '#7b83ce',
    500: '#2f54b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f54b8;
$custom-light: #7b83ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54b8",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 184
  },
  "hsl": {
    "h": 223.796,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47842,
    "c": 0.16395,
    "h": 265.3
  },
  "luminance": 0.10406
}

Semantic roles & 50–950 ramp

primary
#2F54B8
secondary
#C8B37B
accent
#B845E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F54B8

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

Preview Lab → · Contrast checker → · Palette generator →

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