#2F55B5#2F55B5

#2F55B5 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.159 H 264.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2F55B5
RGBrgb(47, 85, 181)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 74%, 71%)
CMYKcmyk(74%, 53%, 0%, 29%)
CIE-LABlab(38.61, 20.60, -54.87)
CIE-LCHlch(38.61, 58.61, 290.58°)
OKLaboklab(47.82% -0.0145 -0.1579)
OKLCHoklch(47.82% 0.159 264.7)
XYZxyz(12.7583, 10.4362, 45.0491)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F55B5 #B58F2F
analogous
#2F98B5 #2F55B5 #4C2FB5
triadic
#2F55B5 #B52F55 #55B52F
tetradic
#2F55B5 #B52F98 #B58F2F #2FB54C
square
#2F55B5 #B52F98 #B58F2F #2FB54C
split-complementary
#2F55B5 #B54C2F #98B52F
monochromatic
#162754 #223E84 #2F55B5 #5075D1 #809BDE

Accessibility & contrast

On white

6.80
#2F55B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2F55B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F55B5
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F55B5#FFFFFF#000000##FFFFFF
##2F55B51.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1061B8
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f55b5;
/* rgb */ color: rgb(47, 85, 181);
/* oklch */ color: oklch(47.8% 0.159 264.7);
Tailwind
colors: {
  custom: {
    50: '#7a84cc',
    500: '#2f55b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f55b5;
$custom-light: #7a84cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f55b5",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 181
  },
  "hsl": {
    "h": 222.985,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47816,
    "c": 0.1586,
    "h": 264.7
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

primary
#2F55B5
secondary
#C7B179
accent
#B646E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F55B5

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

Preview Lab → · Contrast checker → · Palette generator →

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