#2F5194#2F5194

#2F5194 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.5% C 0.117 H 262.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2F5194
RGBrgb(47, 81, 148)
HSLhsl(220, 52%, 38%)
HSVhsv(220, 68%, 58%)
CMYKcmyk(68.2%, 45.3%, 0%, 42%)
CIE-LABlab(35.25, 10.77, -40.57)
CIE-LCHlch(35.25, 41.98, 284.87°)
OKLaboklab(44.54% -0.0154 -0.1159)
OKLCHoklch(44.54% 0.117 262.4)
XYZxyz(9.4581, 8.6264, 29.1778)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5194 #94722F
analogous
#2F8394 #2F5194 #3F2F94
triadic
#2F5194 #942F51 #51942F
tetradic
#2F5194 #942F83 #94722F #2F943F
square
#2F5194 #942F83 #94722F #2F943F
split-complementary
#2F5194 #943F2F #83942F
monochromatic
#111E37 #203866 #2F5194 #3E6BC2 #6D8ED1

Accessibility & contrast

On white

7.71
#2F5194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F5194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5194
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5194#FFFFFF#000000##FFFFFF
##2F51941.007.712.737.71
#FFFFFF7.711.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315897
Deuteranopia (green-blind)
#1F4F93
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f5194;
/* rgb */ color: rgb(47, 81, 148);
/* oklch */ color: oklch(44.5% 0.117 262.4);
Tailwind
colors: {
  custom: {
    50: '#7381b4',
    500: '#2f5194',
    950: '#000000',
  },
}
SCSS
$custom: #2f5194;
$custom-light: #7381b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5194",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 148
  },
  "hsl": {
    "h": 219.802,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44539,
    "c": 0.11696,
    "h": 262.4
  },
  "luminance": 0.08627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5194

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

Preview Lab → · Contrast checker → · Palette generator →

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