#2F54BC#2F54BC

#2F54BC is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.2% C 0.169 H 265.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2F54BC
RGBrgb(47, 84, 188)
HSLhsl(224, 60%, 46%)
HSVhsv(224, 75%, 74%)
CMYKcmyk(75%, 55.3%, 0%, 26.3%)
CIE-LABlab(38.85, 23.90, -58.59)
CIE-LCHlch(38.85, 63.27, 292.19°)
OKLaboklab(48.16% -0.0132 -0.1689)
OKLCHoklch(48.16% 0.169 265.5)
XYZxyz(13.4165, 10.5744, 48.9012)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54BC #BC972F
analogous
#2F9ABC #2F54BC #502FBC
triadic
#2F54BC #BC2F54 #54BC2F
tetradic
#2F54BC #BC2F9A #BC972F #2FBC50
square
#2F54BC #BC2F9A #BC972F #2FBC50
split-complementary
#2F54BC #BC502F #9ABC2F
monochromatic
#17285A #233E8B #2F54BC #5476D4 #859DE0

Accessibility & contrast

On white

6.74
#2F54BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2F54BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54BC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54BC#FFFFFF#000000##FFFFFF
##2F54BC1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f54bc;
/* rgb */ color: rgb(47, 84, 188);
/* oklch */ color: oklch(48.2% 0.169 265.5);
Tailwind
colors: {
  custom: {
    50: '#7c83d1',
    500: '#2f54bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f54bc;
$custom-light: #7c83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54bc",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 224.255,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48159,
    "c": 0.16939,
    "h": 265.5
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#2F54BC
secondary
#CAB67D
accent
#BA45E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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