#2F55A7#2F55A7

#2F55A7 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.8% C 0.139 H 263.3°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2F55A7
RGBrgb(47, 85, 167)
HSLhsl(221, 56%, 42%)
HSVhsv(221, 72%, 65%)
CMYKcmyk(71.9%, 49.1%, 0%, 34.5%)
CIE-LABlab(37.64, 15.31, -48.15)
CIE-LCHlch(37.64, 50.52, 287.64°)
OKLaboklab(46.77% -0.0162 -0.1382)
OKLCHoklch(46.77% 0.139 263.3)
XYZxyz(11.3934, 9.8902, 37.8603)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F55A7 #A7812F
analogous
#2F91A7 #2F55A7 #452FA7
triadic
#2F55A7 #A72F55 #55A72F
tetradic
#2F55A7 #A72F91 #A7812F #2FA745
square
#2F55A7 #A72F91 #A7812F #2FA745
split-complementary
#2F55A7 #A7452F #91A72F
monochromatic
#142447 #223D77 #2F55A7 #4871CB #7896D9

Accessibility & contrast

On white

7.05
#2F55A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2F55A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F55A7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F55A7#FFFFFF#000000##FFFFFF
##2F55A71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EAA
Deuteranopia (green-blind)
#0253A5
Tritanopia (blue-blind)
#006876
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f55a7;
/* rgb */ color: rgb(47, 85, 167);
/* oklch */ color: oklch(46.8% 0.139 263.3);
Tailwind
colors: {
  custom: {
    50: '#7784c2',
    500: '#2f55a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f55a7;
$custom-light: #7784c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f55a7",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 167
  },
  "hsl": {
    "h": 221,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46768,
    "c": 0.1391,
    "h": 263.3
  },
  "luminance": 0.09891
}

Semantic roles & 50–950 ramp

primary
#2F55A7
secondary
#C1A871
accent
#B048DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F55A7

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

Preview Lab → · Contrast checker → · Palette generator →

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