#2F5CBC#2F5CBC

#2F5CBC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.160 H 263.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#2F5CBC
RGBrgb(47, 92, 188)
HSLhsl(221, 60%, 46%)
HSVhsv(221, 75%, 74%)
CMYKcmyk(75%, 51.1%, 0%, 26.3%)
CIE-LABlab(41.04, 18.67, -55.05)
CIE-LCHlch(41.04, 58.13, 288.73°)
OKLaboklab(49.81% -0.0194 -0.1583)
OKLCHoklch(49.81% 0.16 263)
XYZxyz(14.0733, 11.8879, 49.1201)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CBC #BC8F2F
analogous
#2FA2BC #2F5CBC #482FBC
triadic
#2F5CBC #BC2F5C #5CBC2F
tetradic
#2F5CBC #BC2FA2 #BC8F2F #2FBC48
square
#2F5CBC #BC2FA2 #BC8F2F #2FBC48
split-complementary
#2F5CBC #BC482F #A2BC2F
monochromatic
#172C5A #23448B #2F5CBC #547DD4 #85A2E0

Accessibility & contrast

On white

6.22
#2F5CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2F5CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CBC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CBC#FFFFFF#000000##FFFFFF
##2F5CBC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F68BF
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5cbc;
/* rgb */ color: rgb(47, 92, 188);
/* oklch */ color: oklch(49.8% 0.160 263.0);
Tailwind
colors: {
  custom: {
    50: '#7b89d1',
    500: '#2f5cbc',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cbc;
$custom-light: #7b89d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cbc",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 188
  },
  "hsl": {
    "h": 220.851,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49814,
    "c": 0.15953,
    "h": 263
  },
  "luminance": 0.11889
}

Semantic roles & 50–950 ramp

primary
#2F5CBC
secondary
#CAB17D
accent
#B145E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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