#2F54AD#2F54AD

#2F54AD is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.0% C 0.149 H 264.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2F54AD
RGBrgb(47, 84, 173)
HSLhsl(222, 57%, 43%)
HSVhsv(222, 73%, 68%)
CMYKcmyk(72.8%, 51.4%, 0%, 32.2%)
CIE-LABlab(37.77, 18.24, -51.51)
CIE-LCHlch(37.77, 54.64, 289.50°)
OKLaboklab(47% -0.0145 -0.1481)
OKLCHoklch(47% 0.149 264.4)
XYZxyz(11.8828, 9.9609, 40.8235)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54AD #AD882F
analogous
#2F93AD #2F54AD #492FAD
triadic
#2F54AD #AD2F54 #54AD2F
tetradic
#2F54AD #AD2F93 #AD882F #2FAD49
square
#2F54AD #AD2F93 #AD882F #2FAD49
split-complementary
#2F54AD #AD492F #93AD2F
monochromatic
#15254D #223D7D #2F54AD #4B72CE #7B97DB

Accessibility & contrast

On white

7.02
#2F54AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2F54AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F54AD
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54AD#FFFFFF#000000##FFFFFF
##2F54AD1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f54ad;
/* rgb */ color: rgb(47, 84, 173);
/* oklch */ color: oklch(47.0% 0.149 264.4);
Tailwind
colors: {
  custom: {
    50: '#7883c6',
    500: '#2f54ad',
    950: '#000000',
  },
}
SCSS
$custom: #2f54ad;
$custom-light: #7883c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54ad",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 173
  },
  "hsl": {
    "h": 222.381,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46996,
    "c": 0.14877,
    "h": 264.4
  },
  "luminance": 0.09962
}

Semantic roles & 50–950 ramp

primary
#2F54AD
secondary
#C4AC74
accent
#B447E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54AD

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

Preview Lab → · Contrast checker → · Palette generator →

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