#2F5191#2F5191

#2F5191 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.3% C 0.113 H 261.8°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#2F5191
RGBrgb(47, 81, 145)
HSLhsl(219, 51%, 38%)
HSVhsv(219, 68%, 57%)
CMYKcmyk(67.6%, 44.1%, 0%, 43.1%)
CIE-LABlab(35.07, 9.65, -39.05)
CIE-LCHlch(35.07, 40.22, 283.88°)
OKLaboklab(44.34% -0.016 -0.1115)
OKLCHoklch(44.34% 0.113 261.8)
XYZxyz(9.2237, 8.5326, 27.9434)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5191 #916F2F
analogous
#2F8291 #2F5191 #3E2F91
triadic
#2F5191 #912F51 #51912F
tetradic
#2F5191 #912F82 #916F2F #2F913E
square
#2F5191 #912F82 #916F2F #2F913E
split-complementary
#2F5191 #913E2F #82912F
monochromatic
#111D35 #203763 #2F5191 #3E6BBF #6B8ECF

Accessibility & contrast

On white

7.76
#2F5191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2F5191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5191
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5191#FFFFFF#000000##FFFFFF
##2F51911.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335793
Deuteranopia (green-blind)
#234E90
Tritanopia (blue-blind)
#00606A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5191;
/* rgb */ color: rgb(47, 81, 145);
/* oklch */ color: oklch(44.3% 0.113 261.8);
Tailwind
colors: {
  custom: {
    50: '#7381b2',
    500: '#2f5191',
    950: '#000000',
  },
}
SCSS
$custom: #2f5191;
$custom-light: #7381b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5191",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 145
  },
  "hsl": {
    "h": 219.184,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44335,
    "c": 0.11262,
    "h": 261.8
  },
  "luminance": 0.08534
}

Semantic roles & 50–950 ramp

primary
#2F5191
secondary
#B69A65
accent
#AA4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5191

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

Preview Lab → · Contrast checker → · Palette generator →

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