#2F54AC#2F54AC

#2F54AC is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.147 H 264.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#2F54AC
RGBrgb(47, 84, 172)
HSLhsl(222, 57%, 43%)
HSVhsv(222, 73%, 67%)
CMYKcmyk(72.7%, 51.2%, 0%, 32.5%)
CIE-LABlab(37.70, 17.86, -51.02)
CIE-LCHlch(37.70, 54.06, 289.29°)
OKLaboklab(46.92% -0.0146 -0.1466)
OKLCHoklch(46.92% 0.147 264.3)
XYZxyz(11.7864, 9.9223, 40.3158)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54AC #AC872F
analogous
#2F92AC #2F54AC #482FAC
triadic
#2F54AC #AC2F54 #54AC2F
tetradic
#2F54AC #AC2F92 #AC872F #2FAC48
square
#2F54AC #AC2F92 #AC872F #2FAC48
split-complementary
#2F54AC #AC482F #92AC2F
monochromatic
#15254C #223D7C #2F54AC #4B71CE #7B97DB

Accessibility & contrast

On white

7.04
#2F54AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2F54AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F54AC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54AC#FFFFFF#000000##FFFFFF
##2F54AC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5FAF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f54ac;
/* rgb */ color: rgb(47, 84, 172);
/* oklch */ color: oklch(46.9% 0.147 264.3);
Tailwind
colors: {
  custom: {
    50: '#7883c5',
    500: '#2f54ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f54ac;
$custom-light: #7883c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54ac",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 172
  },
  "hsl": {
    "h": 222.24,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46921,
    "c": 0.14737,
    "h": 264.3
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#2F54AC
secondary
#C3AC74
accent
#B347E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54AC

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

Preview Lab → · Contrast checker → · Palette generator →

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