#2F4987#2F4987

#2F4987 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.108 H 265.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#2F4987
RGBrgb(47, 73, 135)
HSLhsl(222, 48%, 36%)
HSVhsv(222, 65%, 53%)
CMYKcmyk(65.2%, 45.9%, 0%, 47.1%)
CIE-LABlab(32.07, 11.23, -37.71)
CIE-LCHlch(32.07, 39.35, 286.59°)
OKLaboklab(41.83% -0.0095 -0.1077)
OKLCHoklch(41.83% 0.108 265)
XYZxyz(7.9265, 7.1180, 23.8732)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4987 #876D2F
analogous
#2F7587 #2F4987 #412F87
triadic
#2F4987 #872F49 #49872F
tetradic
#2F4987 #872F75 #876D2F #2F8741
square
#2F4987 #872F75 #876D2F #2F8741
split-complementary
#2F4987 #87412F #75872F
monochromatic
#0F182C #1F305A #2F4987 #3F62B4 #6684CA

Accessibility & contrast

On white

8.66
#2F4987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F4987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4987
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4987#FFFFFF#000000##FFFFFF
##2F49871.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5089
Deuteranopia (green-blind)
#1D4886
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4987;
/* rgb */ color: rgb(47, 73, 135);
/* oklch */ color: oklch(41.8% 0.108 265.0);
Tailwind
colors: {
  custom: {
    50: '#717baa',
    500: '#2f4987',
    950: '#000000',
  },
}
SCSS
$custom: #2f4987;
$custom-light: #717baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4987",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 222.273,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41829,
    "c": 0.10808,
    "h": 265
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#2F4987
secondary
#B19961
accent
#B050D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4987

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

Preview Lab → · Contrast checker → · Palette generator →

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