#2F55A5#2F55A5

#2F55A5 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.6% C 0.136 H 263.1°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2F55A5
RGBrgb(47, 85, 165)
HSLhsl(221, 56%, 42%)
HSVhsv(221, 72%, 65%)
CMYKcmyk(71.5%, 48.5%, 0%, 35.3%)
CIE-LABlab(37.51, 14.55, -47.17)
CIE-LCHlch(37.51, 49.36, 287.14°)
OKLaboklab(46.62% -0.0165 -0.1353)
OKLCHoklch(46.62% 0.136 263.1)
XYZxyz(11.2099, 9.8168, 36.8941)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F55A5 #A57F2F
analogous
#2F90A5 #2F55A5 #442FA5
triadic
#2F55A5 #A52F55 #55A52F
tetradic
#2F55A5 #A52F90 #A57F2F #2FA544
square
#2F55A5 #A52F90 #A57F2F #2FA544
split-complementary
#2F55A5 #A5442F #90A52F
monochromatic
#142446 #213C75 #2F55A5 #4771CB #7696D8

Accessibility & contrast

On white

7.09
#2F55A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2F55A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F55A5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F55A5#FFFFFF#000000##FFFFFF
##2F55A51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA8
Deuteranopia (green-blind)
#0953A3
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f55a5;
/* rgb */ color: rgb(47, 85, 165);
/* oklch */ color: oklch(46.6% 0.136 263.1);
Tailwind
colors: {
  custom: {
    50: '#7684c0',
    500: '#2f55a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f55a5;
$custom-light: #7684c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f55a5",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 165
  },
  "hsl": {
    "h": 220.678,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46624,
    "c": 0.13628,
    "h": 263.1
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#2F55A5
secondary
#C0A670
accent
#AF49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F55A5

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

Preview Lab → · Contrast checker → · Palette generator →

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