#2F56C1#2F56C1

#2F56C1 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.0% C 0.174 H 265.3°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2F56C1
RGBrgb(47, 86, 193)
HSLhsl(224, 61%, 47%)
HSVhsv(224, 76%, 76%)
CMYKcmyk(75.6%, 55.4%, 0%, 24.3%)
CIE-LABlab(39.76, 24.47, -60.03)
CIE-LCHlch(39.76, 64.82, 292.18°)
OKLaboklab(48.96% -0.0143 -0.1731)
OKLCHoklch(48.96% 0.174 265.3)
XYZxyz(14.1223, 11.1086, 51.8416)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56C1 #C19A2F
analogous
#2F9FC1 #2F56C1 #512FC1
triadic
#2F56C1 #C12F56 #56C12F
tetradic
#2F56C1 #C12F9F #C19A2F #2FC151
square
#2F56C1 #C12F9F #C19A2F #2FC151
split-complementary
#2F56C1 #C1512F #9FC12F
monochromatic
#172A5F #234090 #2F56C1 #5779D6 #88A0E2

Accessibility & contrast

On white

6.52
#2F56C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2F56C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56C1
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56C1#FFFFFF#000000##FFFFFF
##2F56C11.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C5
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f56c1;
/* rgb */ color: rgb(47, 86, 193);
/* oklch */ color: oklch(49.0% 0.174 265.3);
Tailwind
colors: {
  custom: {
    50: '#7d85d4',
    500: '#2f56c1',
    950: '#000000',
  },
}
SCSS
$custom: #2f56c1;
$custom-light: #7d85d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56c1",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 193
  },
  "hsl": {
    "h": 223.973,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48961,
    "c": 0.17369,
    "h": 265.3
  },
  "luminance": 0.1111
}

Semantic roles & 50–950 ramp

primary
#2F56C1
secondary
#CCB880
accent
#B944E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F56C1

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

Preview Lab → · Contrast checker → · Palette generator →

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