#2F54A6#2F54A6

#2F54A6 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.5% C 0.139 H 263.6°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2F54A6
RGBrgb(47, 84, 166)
HSLhsl(221, 56%, 42%)
HSVhsv(221, 72%, 65%)
CMYKcmyk(71.7%, 49.4%, 0%, 34.9%)
CIE-LABlab(37.29, 15.59, -48.12)
CIE-LCHlch(37.29, 50.58, 287.95°)
OKLaboklab(46.48% -0.0154 -0.1381)
OKLCHoklch(46.48% 0.139 263.6)
XYZxyz(11.2231, 9.6970, 37.3492)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54A6 #A6812F
analogous
#2F90A6 #2F54A6 #462FA6
triadic
#2F54A6 #A62F54 #54A62F
tetradic
#2F54A6 #A62F90 #A6812F #2FA646
square
#2F54A6 #A62F90 #A6812F #2FA646
split-complementary
#2F54A6 #A6462F #90A62F
monochromatic
#142447 #213C76 #2F54A6 #4770CB #7795D8

Accessibility & contrast

On white

7.14
#2F54A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2F54A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F54A6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54A6#FFFFFF#000000##FFFFFF
##2F54A61.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265EA9
Deuteranopia (green-blind)
#0053A4
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f54a6;
/* rgb */ color: rgb(47, 84, 166);
/* oklch */ color: oklch(46.5% 0.139 263.6);
Tailwind
colors: {
  custom: {
    50: '#7783c1',
    500: '#2f54a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f54a6;
$custom-light: #7783c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54a6",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 166
  },
  "hsl": {
    "h": 221.345,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46478,
    "c": 0.13895,
    "h": 263.6
  },
  "luminance": 0.09698
}

Semantic roles & 50–950 ramp

primary
#2F54A6
secondary
#C1A870
accent
#B049DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F54A6

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

Preview Lab → · Contrast checker → · Palette generator →

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