#2F56AC#2F56AC

#2F56AC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.3% C 0.145 H 263.5°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2F56AC
RGBrgb(47, 86, 172)
HSLhsl(221, 57%, 43%)
HSVhsv(221, 73%, 67%)
CMYKcmyk(72.7%, 50%, 0%, 32.5%)
CIE-LABlab(38.26, 16.54, -50.12)
CIE-LCHlch(38.26, 52.78, 288.26°)
OKLaboklab(47.35% -0.0164 -0.1439)
OKLCHoklch(47.35% 0.145 263.5)
XYZxyz(11.9438, 10.2372, 40.3682)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56AC #AC852F
analogous
#2F94AC #2F56AC #462FAC
triadic
#2F56AC #AC2F56 #56AC2F
tetradic
#2F56AC #AC2F94 #AC852F #2FAC46
square
#2F56AC #AC2F94 #AC852F #2FAC46
split-complementary
#2F56AC #AC462F #94AC2F
monochromatic
#15264C #223E7C #2F56AC #4B73CE #7B99DB

Accessibility & contrast

On white

6.89
#2F56AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2F56AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56AC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56AC#FFFFFF#000000##FFFFFF
##2F56AC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f56ac;
/* rgb */ color: rgb(47, 86, 172);
/* oklch */ color: oklch(47.3% 0.145 263.5);
Tailwind
colors: {
  custom: {
    50: '#7885c5',
    500: '#2f56ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f56ac;
$custom-light: #7885c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56ac",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 172
  },
  "hsl": {
    "h": 221.28,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4735,
    "c": 0.14487,
    "h": 263.5
  },
  "luminance": 0.10238
}

Semantic roles & 50–950 ramp

primary
#2F56AC
secondary
#C3AA74
accent
#B147E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F56AC

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

Preview Lab → · Contrast checker → · Palette generator →

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