#2F5594#2F5594

#2F5594 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.5% C 0.112 H 260.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#2F5594
RGBrgb(47, 85, 148)
HSLhsl(217, 52%, 38%)
HSVhsv(217, 68%, 58%)
CMYKcmyk(68.2%, 42.6%, 0%, 42%)
CIE-LABlab(36.44, 8.14, -38.68)
CIE-LCHlch(36.44, 39.53, 281.88°)
OKLaboklab(45.45% -0.0195 -0.1103)
OKLCHoklch(45.45% 0.112 260)
XYZxyz(9.7642, 9.2385, 29.2799)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5594 #946E2F
analogous
#2F8794 #2F5594 #3B2F94
triadic
#2F5594 #942F55 #55942F
tetradic
#2F5594 #942F87 #946E2F #2F943B
square
#2F5594 #942F87 #946E2F #2F943B
split-complementary
#2F5594 #943B2F #87942F
monochromatic
#112037 #203A66 #2F5594 #3E70C2 #6D92D1

Accessibility & contrast

On white

7.37
#2F5594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2F5594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5594
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5594#FFFFFF#000000##FFFFFF
##2F55941.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385B96
Deuteranopia (green-blind)
#285193
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f5594;
/* rgb */ color: rgb(47, 85, 148);
/* oklch */ color: oklch(45.5% 0.112 260.0);
Tailwind
colors: {
  custom: {
    50: '#7384b4',
    500: '#2f5594',
    950: '#000000',
  },
}
SCSS
$custom: #2f5594;
$custom-light: #7384b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5594",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 148
  },
  "hsl": {
    "h": 217.426,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45453,
    "c": 0.11204,
    "h": 260
  },
  "luminance": 0.09239
}

Semantic roles & 50–950 ramp

primary
#2F5594
secondary
#B89967
accent
#A64DDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5594

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

Preview Lab → · Contrast checker → · Palette generator →

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