#2F54A3#2F54A3

#2F54A3 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.3% C 0.135 H 263.2°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2F54A3
RGBrgb(47, 84, 163)
HSLhsl(221, 55%, 41%)
HSVhsv(221, 71%, 64%)
CMYKcmyk(71.2%, 48.5%, 0%, 36.1%)
CIE-LABlab(37.09, 14.45, -46.65)
CIE-LCHlch(37.09, 48.84, 287.21°)
OKLaboklab(46.26% -0.0158 -0.1338)
OKLCHoklch(46.26% 0.135 263.2)
XYZxyz(10.9511, 9.5882, 35.9168)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54A3 #A37E2F
analogous
#2F8EA3 #2F54A3 #442FA3
triadic
#2F54A3 #A32F54 #54A32F
tetradic
#2F54A3 #A32F8E #A37E2F #2FA344
square
#2F54A3 #A32F8E #A37E2F #2FA344
split-complementary
#2F54A3 #A3442F #8EA32F
monochromatic
#142344 #213C73 #2F54A3 #4670CA #7594D7

Accessibility & contrast

On white

7.20
#2F54A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F54A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F54A3
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54A3#FFFFFF#000000##FFFFFF
##2F54A31.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA6
Deuteranopia (green-blind)
#0B52A1
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f54a3;
/* rgb */ color: rgb(47, 84, 163);
/* oklch */ color: oklch(46.3% 0.135 263.2);
Tailwind
colors: {
  custom: {
    50: '#7683bf',
    500: '#2f54a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f54a3;
$custom-light: #7683bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54a3",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 163
  },
  "hsl": {
    "h": 220.862,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46261,
    "c": 0.1347,
    "h": 263.2
  },
  "luminance": 0.09589
}

Semantic roles & 50–950 ramp

primary
#2F54A3
secondary
#BFA56F
accent
#AF49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F54A3

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

Preview Lab → · Contrast checker → · Palette generator →

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