#2F5CB4#2F5CB4

#2F5CB4 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.2% C 0.149 H 262.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB4
RGBrgb(47, 92, 180)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(73.9%, 48.9%, 0%, 29.4%)
CIE-LABlab(40.50, 15.64, -51.24)
CIE-LCHlch(40.50, 53.57, 286.97°)
OKLaboklab(49.23% -0.0204 -0.1471)
OKLCHoklch(49.23% 0.149 262.1)
XYZxyz(13.2347, 11.5525, 44.7035)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB4 #B4872F
analogous
#2F9FB4 #2F5CB4 #442FB4
triadic
#2F5CB4 #B42F5C #5CB42F
tetradic
#2F5CB4 #B42F9F #B4872F #2FB444
square
#2F5CB4 #B42F9F #B4872F #2FB444
split-complementary
#2F5CB4 #B4442F #9FB42F
monochromatic
#162A53 #224383 #2F5CB4 #4F7BD1 #809FDE

Accessibility & contrast

On white

6.34
#2F5CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2F5CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB4
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB4#FFFFFF#000000##FFFFFF
##2F5CB41.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B7
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5cb4;
/* rgb */ color: rgb(47, 92, 180);
/* oklch */ color: oklch(49.2% 0.149 262.1);
Tailwind
colors: {
  custom: {
    50: '#7989cb',
    500: '#2f5cb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb4;
$custom-light: #7989cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb4",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 219.699,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49227,
    "c": 0.14855,
    "h": 262.1
  },
  "luminance": 0.11554
}

Semantic roles & 50–950 ramp

primary
#2F5CB4
secondary
#C7AC78
accent
#AD46E2
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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