#2F5CB1#2F5CB1

#2F5CB1 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.144 H 261.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB1
RGBrgb(47, 92, 177)
HSLhsl(219, 58%, 44%)
HSVhsv(219, 73%, 69%)
CMYKcmyk(73.4%, 48%, 0%, 30.6%)
CIE-LABlab(40.30, 14.50, -49.80)
CIE-LCHlch(40.30, 51.86, 286.24°)
OKLaboklab(49.01% -0.0209 -0.1429)
OKLCHoklch(49.01% 0.144 261.7)
XYZxyz(12.9324, 11.4316, 43.1114)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB1 #B1842F
analogous
#2F9DB1 #2F5CB1 #432FB1
triadic
#2F5CB1 #B12F5C #5CB12F
tetradic
#2F5CB1 #B12F9D #B1842F #2FB143
square
#2F5CB1 #B12F9D #B1842F #2FB143
split-complementary
#2F5CB1 #B1432F #9DB12F
monochromatic
#152A50 #224381 #2F5CB1 #4D7BD0 #7E9FDD

Accessibility & contrast

On white

6.39
#2F5CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2F5CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB1
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB1#FFFFFF#000000##FFFFFF
##2F5CB11.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B4
Deuteranopia (green-blind)
#0859AF
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5cb1;
/* rgb */ color: rgb(47, 92, 177);
/* oklch */ color: oklch(49.0% 0.144 261.7);
Tailwind
colors: {
  custom: {
    50: '#7989c9',
    500: '#2f5cb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb1;
$custom-light: #7989c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb1",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 219.231,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49012,
    "c": 0.1444,
    "h": 261.7
  },
  "luminance": 0.11433
}

Semantic roles & 50–950 ramp

primary
#2F5CB1
secondary
#C5AA76
accent
#AC47E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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