#2F54AA#2F54AA

#2F54AA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.8% C 0.145 H 264.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2F54AA
RGBrgb(47, 84, 170)
HSLhsl(222, 57%, 43%)
HSVhsv(222, 72%, 67%)
CMYKcmyk(72.4%, 50.6%, 0%, 33.3%)
CIE-LABlab(37.56, 17.10, -50.06)
CIE-LCHlch(37.56, 52.90, 288.86°)
OKLaboklab(46.77% -0.0149 -0.1438)
OKLCHoklch(46.77% 0.145 264.1)
XYZxyz(11.5957, 9.8460, 39.3118)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54AA #AA852F
analogous
#2F92AA #2F54AA #472FAA
triadic
#2F54AA #AA2F54 #54AA2F
tetradic
#2F54AA #AA2F92 #AA852F #2FAA47
square
#2F54AA #AA2F92 #AA852F #2FAA47
split-complementary
#2F54AA #AA472F #92AA2F
monochromatic
#14254A #223C7A #2F54AA #4971CD #7996DA

Accessibility & contrast

On white

7.07
#2F54AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2F54AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F54AA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54AA#FFFFFF#000000##FFFFFF
##2F54AA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215EAD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f54aa;
/* rgb */ color: rgb(47, 84, 170);
/* oklch */ color: oklch(46.8% 0.145 264.1);
Tailwind
colors: {
  custom: {
    50: '#7883c4',
    500: '#2f54aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f54aa;
$custom-light: #7883c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54aa",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 170
  },
  "hsl": {
    "h": 221.951,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46772,
    "c": 0.14457,
    "h": 264.1
  },
  "luminance": 0.09847
}

Semantic roles & 50–950 ramp

primary
#2F54AA
secondary
#C2AA72
accent
#B248E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54AA

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

Preview Lab → · Contrast checker → · Palette generator →

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