#2F4872#2F4872

#2F4872 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.2% C 0.078 H 260.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2F4872
RGBrgb(47, 72, 114)
HSLhsl(218, 42%, 32%)
HSVhsv(218, 59%, 45%)
CMYKcmyk(58.8%, 36.8%, 0%, 55.3%)
CIE-LABlab(30.53, 4.19, -27.09)
CIE-LCHlch(30.53, 27.41, 278.78°)
OKLaboklab(40.23% -0.0131 -0.0766)
OKLCHoklch(40.23% 0.078 260.3)
XYZxyz(6.5259, 6.4534, 16.8181)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4872 #72592F
analogous
#2F6A72 #2F4872 #382F72
triadic
#2F4872 #722F48 #48722F
tetradic
#2F4872 #722F6A #72592F #2F7238
square
#2F4872 #722F6A #72592F #2F7238
split-complementary
#2F4872 #72382F #6A722F
monochromatic
#0B111B #1D2D47 #2F4872 #41639D #5F82BD

Accessibility & contrast

On white

9.17
#2F4872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F4872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4872
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4872#FFFFFF#000000##FFFFFF
##2F48721.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B74
Deuteranopia (green-blind)
#2E4571
Tritanopia (blue-blind)
#025157
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4872;
/* rgb */ color: rgb(47, 72, 114);
/* oklch */ color: oklch(40.2% 0.078 260.3);
Tailwind
colors: {
  custom: {
    50: '#6d7a9b',
    500: '#2f4872',
    950: '#000000',
  },
}
SCSS
$custom: #2f4872;
$custom-light: #6d7a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4872",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 217.612,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40231,
    "c": 0.07767,
    "h": 260.3
  },
  "luminance": 0.06454
}

Semantic roles & 50–950 ramp

primary
#2F4872
secondary
#A3885A
accent
#A456D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2F4872

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

Preview Lab → · Contrast checker → · Palette generator →

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