#2F5CB7#2F5CB7

#2F5CB7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.153 H 262.5°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB7
RGBrgb(47, 92, 183)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(74.3%, 49.7%, 0%, 28.2%)
CIE-LABlab(40.70, 16.78, -52.68)
CIE-LCHlch(40.70, 55.28, 287.67°)
OKLaboklab(49.45% -0.02 -0.1514)
OKLCHoklch(49.45% 0.153 262.5)
XYZxyz(13.5436, 11.6760, 46.3305)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB7 #B78A2F
analogous
#2FA0B7 #2F5CB7 #462FB7
triadic
#2F5CB7 #B72F5C #5CB72F
tetradic
#2F5CB7 #B72FA0 #B78A2F #2FB746
square
#2F5CB7 #B72FA0 #B78A2F #2FB746
split-complementary
#2F5CB7 #B7462F #A0B72F
monochromatic
#162B56 #224486 #2F5CB7 #517CD2 #82A0DF

Accessibility & contrast

On white

6.30
#2F5CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2F5CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB7
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB7#FFFFFF#000000##FFFFFF
##2F5CB71.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5cb7;
/* rgb */ color: rgb(47, 92, 183);
/* oklch */ color: oklch(49.4% 0.153 262.5);
Tailwind
colors: {
  custom: {
    50: '#7a89cd',
    500: '#2f5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb7;
$custom-light: #7a89cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb7",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 220.147,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49445,
    "c": 0.15268,
    "h": 262.5
  },
  "luminance": 0.11678
}

Semantic roles & 50–950 ramp

primary
#2F5CB7
secondary
#C8AE7A
accent
#AE45E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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