#2F487D#2F487D

#2F487D is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.094 H 263.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2F487D
RGBrgb(47, 72, 125)
HSLhsl(221, 45%, 34%)
HSVhsv(221, 62%, 49%)
CMYKcmyk(62.4%, 42.4%, 0%, 51%)
CIE-LABlab(31.16, 8.19, -32.98)
CIE-LCHlch(31.16, 33.98, 283.95°)
OKLaboklab(40.92% -0.0103 -0.0938)
OKLCHoklch(40.92% 0.094 263.7)
XYZxyz(7.1900, 6.7191, 20.3161)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F487D #7D642F
analogous
#2F6F7D #2F487D #3D2F7D
triadic
#2F487D #7D2F48 #487D2F
tetradic
#2F487D #7D2F6F #7D642F #2F7D3D
square
#2F487D #7D2F6F #7D642F #2F7D3D
split-complementary
#2F487D #7D3D2F #6F7D2F
monochromatic
#0E1524 #1E2E51 #2F487D #4062A9 #6282C4

Accessibility & contrast

On white

8.96
#2F487D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F487D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F487D
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F487D#FFFFFF#000000##FFFFFF
##2F487D1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7F
Deuteranopia (green-blind)
#26467C
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f487d;
/* rgb */ color: rgb(47, 72, 125);
/* oklch */ color: oklch(40.9% 0.094 263.7);
Tailwind
colors: {
  custom: {
    50: '#6f7aa3',
    500: '#2f487d',
    950: '#000000',
  },
}
SCSS
$custom: #2f487d;
$custom-light: #6f7aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f487d",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 125
  },
  "hsl": {
    "h": 220.769,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40924,
    "c": 0.09435,
    "h": 263.7
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

primary
#2F487D
secondary
#AB925D
accent
#AB53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F487D

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

Preview Lab → · Contrast checker → · Palette generator →

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