#2F54C3#2F54C3

#2F54C3 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.7% C 0.179 H 265.9°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#2F54C3
RGBrgb(47, 84, 195)
HSLhsl(225, 61%, 47%)
HSVhsv(225, 76%, 76%)
CMYKcmyk(75.9%, 56.9%, 0%, 23.5%)
CIE-LABlab(39.38, 26.52, -61.81)
CIE-LCHlch(39.38, 67.26, 293.22°)
OKLaboklab(48.72% -0.0128 -0.1784)
OKLCHoklch(48.72% 0.179 265.9)
XYZxyz(14.1895, 10.8835, 52.9721)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54C3 #C39E2F
analogous
#2F9EC3 #2F54C3 #542FC3
triadic
#2F54C3 #C32F54 #54C32F
tetradic
#2F54C3 #C32F9E #C39E2F #2FC354
square
#2F54C3 #C32F9E #C39E2F #2FC354
split-complementary
#2F54C3 #C3542F #9EC32F
monochromatic
#172A60 #233F92 #2F54C3 #5878D7 #8AA0E3

Accessibility & contrast

On white

6.61
#2F54C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2F54C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54C3
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54C3#FFFFFF#000000##FFFFFF
##2F54C31.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C7
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f54c3;
/* rgb */ color: rgb(47, 84, 195);
/* oklch */ color: oklch(48.7% 0.179 265.9);
Tailwind
colors: {
  custom: {
    50: '#7d83d6',
    500: '#2f54c3',
    950: '#000000',
  },
}
SCSS
$custom: #2f54c3;
$custom-light: #7d83d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54c3",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 195
  },
  "hsl": {
    "h": 225,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48724,
    "c": 0.17882,
    "h": 265.9
  },
  "luminance": 0.10885
}

Semantic roles & 50–950 ramp

primary
#2F54C3
secondary
#CDBA81
accent
#BC44E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F54C3

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

Preview Lab → · Contrast checker → · Palette generator →

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