#2F5199#2F5199

#2F5199 is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.9% C 0.124 H 263.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#2F5199
RGBrgb(47, 81, 153)
HSLhsl(221, 53%, 39%)
HSVhsv(221, 69%, 60%)
CMYKcmyk(69.3%, 47.1%, 0%, 40%)
CIE-LABlab(35.57, 12.66, -43.09)
CIE-LCHlch(35.57, 44.91, 286.37°)
OKLaboklab(44.89% -0.0146 -0.1233)
OKLCHoklch(44.89% 0.124 263.3)
XYZxyz(9.8625, 8.7881, 31.3073)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5199 #99772F
analogous
#2F8699 #2F5199 #422F99
triadic
#2F5199 #992F51 #51992F
tetradic
#2F5199 #992F86 #99772F #2F9942
square
#2F5199 #992F86 #99772F #2F9942
split-complementary
#2F5199 #99422F #86992F
monochromatic
#121F3B #21386A #2F5199 #416BC5 #6F8FD3

Accessibility & contrast

On white

7.61
#2F5199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2F5199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5199
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5199#FFFFFF#000000##FFFFFF
##2F51991.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599C
Deuteranopia (green-blind)
#174F98
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5199;
/* rgb */ color: rgb(47, 81, 153);
/* oklch */ color: oklch(44.9% 0.124 263.3);
Tailwind
colors: {
  custom: {
    50: '#7481b7',
    500: '#2f5199',
    950: '#000000',
  },
}
SCSS
$custom: #2f5199;
$custom-light: #7481b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5199",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 220.755,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44886,
    "c": 0.1242,
    "h": 263.3
  },
  "luminance": 0.08789
}

Semantic roles & 50–950 ramp

primary
#2F5199
secondary
#BAA069
accent
#AE4BDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5199

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

Preview Lab → · Contrast checker → · Palette generator →

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