#2F5799#2F5799

#2F5799 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.2% C 0.117 H 259.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#2F5799
RGBrgb(47, 87, 153)
HSLhsl(217, 53%, 39%)
HSVhsv(217, 69%, 60%)
CMYKcmyk(69.3%, 43.1%, 0%, 40%)
CIE-LABlab(37.33, 8.71, -40.27)
CIE-LCHlch(37.33, 41.20, 282.20°)
OKLaboklab(46.24% -0.0205 -0.1149)
OKLCHoklch(46.24% 0.117 259.9)
XYZxyz(10.3282, 9.7196, 31.4626)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5799 #99712F
analogous
#2F8C99 #2F5799 #3C2F99
triadic
#2F5799 #992F57 #57992F
tetradic
#2F5799 #992F8C #99712F #2F993C
square
#2F5799 #992F8C #99712F #2F993C
split-complementary
#2F5799 #993C2F #8C992F
monochromatic
#12223B #213C6A #2F5799 #4172C5 #6F95D3

Accessibility & contrast

On white

7.13
#2F5799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2F5799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5799
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5799#FFFFFF#000000##FFFFFF
##2F57991.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9C
Deuteranopia (green-blind)
#275398
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f5799;
/* rgb */ color: rgb(47, 87, 153);
/* oklch */ color: oklch(46.2% 0.117 259.9);
Tailwind
colors: {
  custom: {
    50: '#7485b7',
    500: '#2f5799',
    950: '#000000',
  },
}
SCSS
$custom: #2f5799;
$custom-light: #7485b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5799",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 217.358,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46243,
    "c": 0.11677,
    "h": 259.9
  },
  "luminance": 0.09721
}

Semantic roles & 50–950 ramp

primary
#2F5799
secondary
#BA9C69
accent
#A64BDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5799

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

Preview Lab → · Contrast checker → · Palette generator →

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