#2F5CB3#2F5CB3

#2F5CB3 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.147 H 262.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB3
RGBrgb(47, 92, 179)
HSLhsl(220, 58%, 44%)
HSVhsv(220, 74%, 70%)
CMYKcmyk(73.7%, 48.6%, 0%, 29.8%)
CIE-LABlab(40.43, 15.26, -50.76)
CIE-LCHlch(40.43, 53.00, 286.73°)
OKLaboklab(49.16% -0.0206 -0.1457)
OKLCHoklch(49.16% 0.147 262)
XYZxyz(13.1332, 11.5119, 44.1689)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB3 #B3862F
analogous
#2F9EB3 #2F5CB3 #442FB3
triadic
#2F5CB3 #B32F5C #5CB32F
tetradic
#2F5CB3 #B32F9E #B3862F #2FB344
square
#2F5CB3 #B32F9E #B3862F #2FB344
split-complementary
#2F5CB3 #B3442F #9EB32F
monochromatic
#162A52 #224383 #2F5CB3 #4F7BD1 #7F9FDD

Accessibility & contrast

On white

6.36
#2F5CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2F5CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB3
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB3#FFFFFF#000000##FFFFFF
##2F5CB31.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5cb3;
/* rgb */ color: rgb(47, 92, 179);
/* oklch */ color: oklch(49.2% 0.147 262.0);
Tailwind
colors: {
  custom: {
    50: '#7989ca',
    500: '#2f5cb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb3;
$custom-light: #7989ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb3",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 219.545,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49155,
    "c": 0.14717,
    "h": 262
  },
  "luminance": 0.11513
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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