#2F5091#2F5091

#2F5091 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.114 H 262.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2F5091
RGBrgb(47, 80, 145)
HSLhsl(220, 51%, 38%)
HSVhsv(220, 68%, 57%)
CMYKcmyk(67.6%, 44.8%, 0%, 43.1%)
CIE-LABlab(34.77, 10.31, -39.52)
CIE-LCHlch(34.77, 40.84, 284.62°)
OKLaboklab(44.11% -0.015 -0.1129)
OKLCHoklch(44.11% 0.114 262.4)
XYZxyz(9.1500, 8.3851, 27.9189)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5091 #91702F
analogous
#2F8191 #2F5091 #3F2F91
triadic
#2F5091 #912F50 #50912F
tetradic
#2F5091 #912F81 #91702F #2F913F
square
#2F5091 #912F81 #91702F #2F913F
split-complementary
#2F5091 #913F2F #81912F
monochromatic
#111D35 #203663 #2F5091 #3E69BF #6B8DCF

Accessibility & contrast

On white

7.84
#2F5091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F5091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5091
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5091#FFFFFF#000000##FFFFFF
##2F50911.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315793
Deuteranopia (green-blind)
#214E90
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5091;
/* rgb */ color: rgb(47, 80, 145);
/* oklch */ color: oklch(44.1% 0.114 262.4);
Tailwind
colors: {
  custom: {
    50: '#7380b2',
    500: '#2f5091',
    950: '#000000',
  },
}
SCSS
$custom: #2f5091;
$custom-light: #7380b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5091",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 145
  },
  "hsl": {
    "h": 219.796,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44107,
    "c": 0.11386,
    "h": 262.4
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#2F5091
secondary
#B69B65
accent
#AB4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5091

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

Preview Lab → · Contrast checker → · Palette generator →

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