#2F5790#2F5790

#2F5790 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 45.7% C 0.104 H 257.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2F5790
RGBrgb(47, 87, 144)
HSLhsl(215, 51%, 37%)
HSVhsv(215, 67%, 56%)
CMYKcmyk(67.4%, 39.6%, 0%, 43.5%)
CIE-LABlab(36.81, 5.34, -35.67)
CIE-LCHlch(36.81, 36.07, 278.52°)
OKLaboklab(45.66% -0.0226 -0.1015)
OKLCHoklch(45.66% 0.104 257.5)
XYZxyz(9.6127, 9.4334, 27.6944)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5790 #90682F
analogous
#2F8790 #2F5790 #382F90
triadic
#2F5790 #902F57 #57902F
tetradic
#2F5790 #902F87 #90682F #2F9038
square
#2F5790 #902F87 #90682F #2F9038
split-complementary
#2F5790 #90382F #87902F
monochromatic
#111F34 #203B62 #2F5790 #3E73BE #6B94CF

Accessibility & contrast

On white

7.27
#2F5790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2F5790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5790
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5790#FFFFFF#000000##FFFFFF
##2F57901.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5C92
Deuteranopia (green-blind)
#2F528F
Tritanopia (blue-blind)
#00646C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f5790;
/* rgb */ color: rgb(47, 87, 144);
/* oklch */ color: oklch(45.7% 0.104 257.5);
Tailwind
colors: {
  custom: {
    50: '#7286b1',
    500: '#2f5790',
    950: '#000000',
  },
}
SCSS
$custom: #2f5790;
$custom-light: #7286b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5790",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 144
  },
  "hsl": {
    "h": 215.258,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45661,
    "c": 0.10396,
    "h": 257.5
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#2F5790
secondary
#B69465
accent
#A04EDA
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #2F5790

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

Preview Lab → · Contrast checker → · Palette generator →

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