#2F5CB2#2F5CB2

#2F5CB2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.1% C 0.146 H 261.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB2
RGBrgb(47, 92, 178)
HSLhsl(219, 58%, 44%)
HSVhsv(219, 74%, 70%)
CMYKcmyk(73.6%, 48.3%, 0%, 30.2%)
CIE-LABlab(40.36, 14.88, -50.28)
CIE-LCHlch(40.36, 52.43, 286.49°)
OKLaboklab(49.08% -0.0207 -0.1443)
OKLCHoklch(49.08% 0.146 261.8)
XYZxyz(13.0324, 11.4716, 43.6382)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB2 #B2852F
analogous
#2F9EB2 #2F5CB2 #442FB2
triadic
#2F5CB2 #B22F5C #5CB22F
tetradic
#2F5CB2 #B22F9E #B2852F #2FB244
square
#2F5CB2 #B22F9E #B2852F #2FB244
split-complementary
#2F5CB2 #B2442F #9EB22F
monochromatic
#152A51 #224382 #2F5CB2 #4E7BD0 #7E9FDD

Accessibility & contrast

On white

6.37
#2F5CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5CB2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB2#FFFFFF#000000##FFFFFF
##2F5CB21.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#0359B0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5cb2;
/* rgb */ color: rgb(47, 92, 178);
/* oklch */ color: oklch(49.1% 0.146 261.8);
Tailwind
colors: {
  custom: {
    50: '#7989ca',
    500: '#2f5cb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb2;
$custom-light: #7989ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb2",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 219.389,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49084,
    "c": 0.14578,
    "h": 261.8
  },
  "luminance": 0.11473
}

Semantic roles & 50–950 ramp

primary
#2F5CB2
secondary
#C6AB77
accent
#AC46E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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