#2F54AE#2F54AE

#2F54AE is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.1% C 0.150 H 264.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#2F54AE
RGBrgb(47, 84, 174)
HSLhsl(223, 57%, 43%)
HSVhsv(223, 73%, 68%)
CMYKcmyk(73%, 51.7%, 0%, 31.8%)
CIE-LABlab(37.84, 18.62, -51.98)
CIE-LCHlch(37.84, 55.22, 289.70°)
OKLaboklab(47.07% -0.0144 -0.1495)
OKLCHoklch(47.07% 0.15 264.5)
XYZxyz(11.9799, 9.9997, 41.3350)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54AE #AE892F
analogous
#2F93AE #2F54AE #4A2FAE
triadic
#2F54AE #AE2F54 #54AE2F
tetradic
#2F54AE #AE2F93 #AE892F #2FAE4A
square
#2F54AE #AE2F93 #AE892F #2FAE4A
split-complementary
#2F54AE #AE4A2F #93AE2F
monochromatic
#15254E #223D7E #2F54AE #4C72CF #7C98DC

Accessibility & contrast

On white

7.00
#2F54AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2F54AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54AE
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54AE#FFFFFF#000000##FFFFFF
##2F54AE1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5FB1
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f54ae;
/* rgb */ color: rgb(47, 84, 174);
/* oklch */ color: oklch(47.1% 0.150 264.5);
Tailwind
colors: {
  custom: {
    50: '#7883c7',
    500: '#2f54ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f54ae;
$custom-light: #7883c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54ae",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 174
  },
  "hsl": {
    "h": 222.52,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47072,
    "c": 0.15016,
    "h": 264.5
  },
  "luminance": 0.10001
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F54AE

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

Preview Lab → · Contrast checker → · Palette generator →

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