#2F56BA#2F56BA

#2F56BA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.4% C 0.164 H 264.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#2F56BA
RGBrgb(47, 86, 186)
HSLhsl(223, 60%, 46%)
HSVhsv(223, 75%, 73%)
CMYKcmyk(74.7%, 53.8%, 0%, 27.1%)
CIE-LABlab(39.25, 21.83, -56.78)
CIE-LCHlch(39.25, 60.83, 291.04°)
OKLaboklab(48.41% -0.0149 -0.1635)
OKLCHoklch(48.41% 0.164 264.8)
XYZxyz(13.3599, 10.8036, 47.8261)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56BA #BA932F
analogous
#2F9CBA #2F56BA #4D2FBA
triadic
#2F56BA #BA2F56 #56BA2F
tetradic
#2F56BA #BA2F9C #BA932F #2FBA4D
square
#2F56BA #BA2F9C #BA932F #2FBA4D
split-complementary
#2F56BA #BA4D2F #9CBA2F
monochromatic
#162958 #233F89 #2F56BA #5377D3 #849DE0

Accessibility & contrast

On white

6.64
#2F56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2F56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56BA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56BA#FFFFFF#000000##FFFFFF
##2F56BA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0663BE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f56ba;
/* rgb */ color: rgb(47, 86, 186);
/* oklch */ color: oklch(48.4% 0.164 264.8);
Tailwind
colors: {
  custom: {
    50: '#7b85cf',
    500: '#2f56ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f56ba;
$custom-light: #7b85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56ba",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 223.165,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4841,
    "c": 0.1642,
    "h": 264.8
  },
  "luminance": 0.10805
}

Semantic roles & 50–950 ramp

primary
#2F56BA
secondary
#C9B37C
accent
#B745E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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