#2F487F#2F487F

#2F487F is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.097 H 264.2°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F487F
RGBrgb(47, 72, 127)
HSLhsl(221, 46%, 34%)
HSVhsv(221, 63%, 50%)
CMYKcmyk(63%, 43.3%, 0%, 50.2%)
CIE-LABlab(31.28, 8.93, -34.03)
CIE-LCHlch(31.28, 35.18, 284.71°)
OKLaboklab(41.06% -0.0099 -0.0969)
OKLCHoklch(41.06% 0.097 264.2)
XYZxyz(7.3191, 6.7707, 20.9957)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F487F #7F662F
analogous
#2F707F #2F487F #3E2F7F
triadic
#2F487F #7F2F48 #487F2F
tetradic
#2F487F #7F2F70 #7F662F #2F7F3E
square
#2F487F #7F2F70 #7F662F #2F7F3E
split-complementary
#2F487F #7F3E2F #707F2F
monochromatic
#0E1526 #1E2F52 #2F487F #4061AC #6382C5

Accessibility & contrast

On white

8.92
#2F487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F487F
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F487F#FFFFFF#000000##FFFFFF
##2F487F1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304E81
Deuteranopia (green-blind)
#24467E
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f487f;
/* rgb */ color: rgb(47, 72, 127);
/* oklch */ color: oklch(41.1% 0.097 264.2);
Tailwind
colors: {
  custom: {
    50: '#6f7aa4',
    500: '#2f487f',
    950: '#000000',
  },
}
SCSS
$custom: #2f487f;
$custom-light: #6f7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f487f",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 221.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41056,
    "c": 0.09738,
    "h": 264.2
  },
  "luminance": 0.06771
}

Semantic roles & 50–950 ramp

primary
#2F487F
secondary
#AC945E
accent
#AD52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F487F

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

Preview Lab → · Contrast checker → · Palette generator →

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