#2F5791#2F5791

#2F5791 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.7% C 0.105 H 257.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2F5791
RGBrgb(47, 87, 145)
HSLhsl(216, 51%, 38%)
HSVhsv(216, 68%, 57%)
CMYKcmyk(67.6%, 40%, 0%, 43.1%)
CIE-LABlab(36.86, 5.72, -36.19)
CIE-LCHlch(36.86, 36.64, 278.98°)
OKLaboklab(45.72% -0.0223 -0.103)
OKLCHoklch(45.72% 0.105 257.8)
XYZxyz(9.6895, 9.4641, 28.0987)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5791 #91692F
analogous
#2F8891 #2F5791 #382F91
triadic
#2F5791 #912F57 #57912F
tetradic
#2F5791 #912F88 #91692F #2F9138
square
#2F5791 #912F88 #91692F #2F9138
split-complementary
#2F5791 #91382F #88912F
monochromatic
#112035 #203B63 #2F5791 #3E73BF #6B94CF

Accessibility & contrast

On white

7.26
#2F5791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2F5791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5791
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5791#FFFFFF#000000##FFFFFF
##2F57911.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5C93
Deuteranopia (green-blind)
#2F5390
Tritanopia (blue-blind)
#00646D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f5791;
/* rgb */ color: rgb(47, 87, 145);
/* oklch */ color: oklch(45.7% 0.105 257.8);
Tailwind
colors: {
  custom: {
    50: '#7286b1',
    500: '#2f5791',
    950: '#000000',
  },
}
SCSS
$custom: #2f5791;
$custom-light: #7286b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5791",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 145
  },
  "hsl": {
    "h": 215.51,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45724,
    "c": 0.10538,
    "h": 257.8
  },
  "luminance": 0.09465
}

Semantic roles & 50–950 ramp

primary
#2F5791
secondary
#B69565
accent
#A14DDB
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5791

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

Preview Lab → · Contrast checker → · Palette generator →

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