#2F56C8#2F56C8

#2F56C8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.5% C 0.183 H 265.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2F56C8
RGBrgb(47, 86, 200)
HSLhsl(225, 62%, 48%)
HSVhsv(225, 77%, 78%)
CMYKcmyk(76.5%, 57%, 0%, 21.6%)
CIE-LABlab(40.29, 27.09, -63.23)
CIE-LCHlch(40.29, 68.79, 293.19°)
OKLaboklab(49.53% -0.0139 -0.1825)
OKLCHoklch(49.53% 0.183 265.6)
XYZxyz(14.9217, 11.4284, 56.0519)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F56C8 #C8A12F
analogous
#2FA2C8 #2F56C8 #542FC8
triadic
#2F56C8 #C82F56 #56C82F
tetradic
#2F56C8 #C82FA2 #C8A12F #2FC854
square
#2F56C8 #C82FA2 #C8A12F #2FC854
split-complementary
#2F56C8 #C8542F #A2C82F
monochromatic
#182B65 #234196 #2F56C8 #5C7BD9 #8DA3E4

Accessibility & contrast

On white

6.39
#2F56C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2F56C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F56C8
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F56C8#FFFFFF#000000##FFFFFF
##2F56C81.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#0058C6
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f56c8;
/* rgb */ color: rgb(47, 86, 200);
/* oklch */ color: oklch(49.5% 0.183 265.6);
Tailwind
colors: {
  custom: {
    50: '#7e85da',
    500: '#2f56c8',
    950: '#000000',
  },
}
SCSS
$custom: #2f56c8;
$custom-light: #7e85da;
$custom-dark: #000000;
JSON
{
  "hex": "#2f56c8",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 224.706,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.18305,
    "h": 265.6
  },
  "luminance": 0.1143
}

Semantic roles & 50–950 ramp

primary
#2F56C8
secondary
#CFBC84
accent
#BC43E5
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2F56C8

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

Preview Lab → · Contrast checker → · Palette generator →

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