#2F4571#2F4571

#2F4571 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.4% C 0.080 H 263.1°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2F4571
RGBrgb(47, 69, 113)
HSLhsl(220, 41%, 31%)
HSVhsv(220, 58%, 44%)
CMYKcmyk(58.4%, 38.9%, 0%, 55.7%)
CIE-LABlab(29.54, 5.83, -28.01)
CIE-LCHlch(29.54, 28.61, 281.75°)
OKLaboklab(39.45% -0.0096 -0.0793)
OKLCHoklch(39.45% 0.08 263.1)
XYZxyz(6.2800, 6.0523, 16.4569)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4571 #715B2F
analogous
#2F6671 #2F4571 #3A2F71
triadic
#2F4571 #712F45 #45712F
tetradic
#2F4571 #712F66 #715B2F #2F713A
square
#2F4571 #712F66 #715B2F #2F713A
split-complementary
#2F4571 #713A2F #66712F
monochromatic
#0B101B #1D2B46 #2F4571 #415F9C #5E7EBC

Accessibility & contrast

On white

9.50
#2F4571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F4571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4571
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4571#FFFFFF#000000##FFFFFF
##2F45711.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#2B4370
Tritanopia (blue-blind)
#054F55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4571;
/* rgb */ color: rgb(47, 69, 113);
/* oklch */ color: oklch(39.4% 0.080 263.1);
Tailwind
colors: {
  custom: {
    50: '#6d789a',
    500: '#2f4571',
    950: '#000000',
  },
}
SCSS
$custom: #2f4571;
$custom-light: #6d789a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4571",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 113
  },
  "hsl": {
    "h": 220,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39448,
    "c": 0.07986,
    "h": 263.1
  },
  "luminance": 0.06053
}

Semantic roles & 50–950 ramp

primary
#2F4571
secondary
#A28A5A
accent
#A857D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F4571

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

Preview Lab → · Contrast checker → · Palette generator →

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