#2F5994#2F5994

#2F5994 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.4% C 0.107 H 257.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2F5994
RGBrgb(47, 89, 148)
HSLhsl(215, 52%, 38%)
HSVhsv(215, 68%, 58%)
CMYKcmyk(68.2%, 39.9%, 0%, 42%)
CIE-LABlab(37.64, 5.54, -36.77)
CIE-LCHlch(37.64, 37.19, 278.56°)
OKLaboklab(46.38% -0.0237 -0.1047)
OKLCHoklch(46.38% 0.107 257.2)
XYZxyz(10.0880, 9.8862, 29.3878)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5994 #946A2F
analogous
#2F8B94 #2F5994 #382F94
triadic
#2F5994 #942F59 #59942F
tetradic
#2F5994 #942F8B #946A2F #2F9438
square
#2F5994 #942F8B #946A2F #2F9438
split-complementary
#2F5994 #94382F #8B942F
monochromatic
#112137 #203D66 #2F5994 #3E75C2 #6D96D1

Accessibility & contrast

On white

7.05
#2F5994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2F5994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5994
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5994#FFFFFF#000000##FFFFFF
##2F59941.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5E96
Deuteranopia (green-blind)
#2F5493
Tritanopia (blue-blind)
#00676F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f5994;
/* rgb */ color: rgb(47, 89, 148);
/* oklch */ color: oklch(46.4% 0.107 257.2);
Tailwind
colors: {
  custom: {
    50: '#7387b4',
    500: '#2f5994',
    950: '#000000',
  },
}
SCSS
$custom: #2f5994;
$custom-light: #7387b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5994",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 148
  },
  "hsl": {
    "h": 215.05,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46382,
    "c": 0.10732,
    "h": 257.2
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#2F5994
secondary
#B89667
accent
#A04DDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5994

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

Preview Lab → · Contrast checker → · Palette generator →

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