#2F54B1#2F54B1

#2F54B1 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.3% C 0.154 H 264.8°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2F54B1
RGBrgb(47, 84, 177)
HSLhsl(223, 58%, 44%)
HSVhsv(223, 73%, 69%)
CMYKcmyk(73.4%, 52.5%, 0%, 30.6%)
CIE-LABlab(38.05, 19.75, -53.42)
CIE-LCHlch(38.05, 56.95, 290.29°)
OKLaboklab(47.3% -0.0141 -0.1537)
OKLCHoklch(47.3% 0.154 264.8)
XYZxyz(12.2756, 10.1180, 42.8925)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54B1 #B18C2F
analogous
#2F95B1 #2F54B1 #4B2FB1
triadic
#2F54B1 #B12F54 #54B12F
tetradic
#2F54B1 #B12F95 #B18C2F #2FB14B
square
#2F54B1 #B12F95 #B18C2F #2FB14B
split-complementary
#2F54B1 #B14B2F #95B12F
monochromatic
#152650 #223D81 #2F54B1 #4D73D0 #7E99DD

Accessibility & contrast

On white

6.94
#2F54B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2F54B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54B1
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54B1#FFFFFF#000000##FFFFFF
##2F54B11.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1560B4
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f54b1;
/* rgb */ color: rgb(47, 84, 177);
/* oklch */ color: oklch(47.3% 0.154 264.8);
Tailwind
colors: {
  custom: {
    50: '#7983c9',
    500: '#2f54b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f54b1;
$custom-light: #7983c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54b1",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 177
  },
  "hsl": {
    "h": 222.923,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.473,
    "c": 0.15432,
    "h": 264.8
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

primary
#2F54B1
secondary
#C5AF76
accent
#B547E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54B1

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

Preview Lab → · Contrast checker → · Palette generator →

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