#2F54B3#2F54B3

#2F54B3 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.5% C 0.157 H 264.9°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#2F54B3
RGBrgb(47, 84, 179)
HSLhsl(223, 58%, 44%)
HSVhsv(223, 74%, 70%)
CMYKcmyk(73.7%, 53.1%, 0%, 29.8%)
CIE-LABlab(38.20, 20.51, -54.37)
CIE-LCHlch(38.20, 58.10, 290.67°)
OKLaboklab(47.45% -0.0139 -0.1565)
OKLCHoklch(47.45% 0.157 264.9)
XYZxyz(12.4764, 10.1983, 43.9500)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54B3 #B38E2F
analogous
#2F96B3 #2F54B3 #4C2FB3
triadic
#2F54B3 #B32F54 #54B32F
tetradic
#2F54B3 #B32F96 #B38E2F #2FB34C
square
#2F54B3 #B32F96 #B38E2F #2FB34C
split-complementary
#2F54B3 #B34C2F #96B32F
monochromatic
#162752 #223D83 #2F54B3 #4F73D1 #7F99DD

Accessibility & contrast

On white

6.91
#2F54B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2F54B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54B3
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54B3#FFFFFF#000000##FFFFFF
##2F54B31.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1060B6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f54b3;
/* rgb */ color: rgb(47, 84, 179);
/* oklch */ color: oklch(47.5% 0.157 264.9);
Tailwind
colors: {
  custom: {
    50: '#7a83ca',
    500: '#2f54b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f54b3;
$custom-light: #7a83ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54b3",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 179
  },
  "hsl": {
    "h": 223.182,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47453,
    "c": 0.15709,
    "h": 264.9
  },
  "luminance": 0.102
}

Semantic roles & 50–950 ramp

primary
#2F54B3
secondary
#C6B078
accent
#B646E2
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54B3

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

Preview Lab → · Contrast checker → · Palette generator →

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