#2F56AF#2F56AF

#2F56AF is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.149 H 263.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2F56AF
RGBrgb(47, 86, 175)
HSLhsl(222, 58%, 44%)
HSVhsv(222, 73%, 69%)
CMYKcmyk(73.1%, 50.9%, 0%, 31.4%)
CIE-LABlab(38.47, 17.68, -51.56)
CIE-LCHlch(38.47, 54.51, 288.92°)
OKLaboklab(47.57% -0.016 -0.1482)
OKLCHoklch(47.57% 0.149 263.8)
XYZxyz(12.2352, 10.3538, 41.9028)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56AF #AF882F
analogous
#2F96AF #2F56AF #482FAF
triadic
#2F56AF #AF2F56 #56AF2F
tetradic
#2F56AF #AF2F96 #AF882F #2FAF48
square
#2F56AF #AF2F96 #AF882F #2FAF48
split-complementary
#2F56AF #AF482F #96AF2F
monochromatic
#15274F #223E7F #2F56AF #4C74CF #7C9ADC

Accessibility & contrast

On white

6.84
#2F56AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F56AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56AF
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56AF#FFFFFF#000000##FFFFFF
##2F56AF1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2061B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f56af;
/* rgb */ color: rgb(47, 86, 175);
/* oklch */ color: oklch(47.6% 0.149 263.8);
Tailwind
colors: {
  custom: {
    50: '#7985c7',
    500: '#2f56af',
    950: '#000000',
  },
}
SCSS
$custom: #2f56af;
$custom-light: #7985c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56af",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 175
  },
  "hsl": {
    "h": 221.719,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.14905,
    "h": 263.8
  },
  "luminance": 0.10355
}

Semantic roles & 50–950 ramp

primary
#2F56AF
secondary
#C4AC75
accent
#B247E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F56AF

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

Preview Lab → · Contrast checker → · Palette generator →

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