#2F54BF#2F54BF

#2F54BF is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.4% C 0.173 H 265.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#2F54BF
RGBrgb(47, 84, 191)
HSLhsl(225, 61%, 47%)
HSVhsv(225, 75%, 75%)
CMYKcmyk(75.4%, 56%, 0%, 25.1%)
CIE-LABlab(39.08, 25.02, -59.97)
CIE-LCHlch(39.08, 64.98, 292.65°)
OKLaboklab(48.4% -0.013 -0.173)
OKLCHoklch(48.4% 0.173 265.7)
XYZxyz(13.7433, 10.7051, 50.6221)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54BF #BF9A2F
analogous
#2F9CBF #2F54BF #522FBF
triadic
#2F54BF #BF2F54 #54BF2F
tetradic
#2F54BF #BF2F9C #BF9A2F #2FBF52
square
#2F54BF #BF2F9C #BF9A2F #2FBF52
split-complementary
#2F54BF #BF522F #9CBF2F
monochromatic
#17295D #233E8E #2F54BF #5677D5 #879EE1

Accessibility & contrast

On white

6.68
#2F54BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2F54BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54BF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54BF#FFFFFF#000000##FFFFFF
##2F54BF1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f54bf;
/* rgb */ color: rgb(47, 84, 191);
/* oklch */ color: oklch(48.4% 0.173 265.7);
Tailwind
colors: {
  custom: {
    50: '#7c83d3',
    500: '#2f54bf',
    950: '#000000',
  },
}
SCSS
$custom: #2f54bf;
$custom-light: #7c83d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54bf",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 224.583,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48399,
    "c": 0.17346,
    "h": 265.7
  },
  "luminance": 0.10707
}

Semantic roles & 50–950 ramp

primary
#2F54BF
secondary
#CBB77F
accent
#BB44E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F54BF

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

Preview Lab → · Contrast checker → · Palette generator →

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