#2F487E#2F487E

#2F487E is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.096 H 263.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2F487E
RGBrgb(47, 72, 126)
HSLhsl(221, 46%, 34%)
HSVhsv(221, 63%, 49%)
CMYKcmyk(62.7%, 42.9%, 0%, 50.6%)
CIE-LABlab(31.22, 8.56, -33.50)
CIE-LCHlch(31.22, 34.58, 284.34°)
OKLaboklab(40.99% -0.0101 -0.0953)
OKLCHoklch(40.99% 0.096 263.9)
XYZxyz(7.2543, 6.7448, 20.6542)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F487E #7E652F
analogous
#2F707E #2F487E #3E2F7E
triadic
#2F487E #7E2F48 #487E2F
tetradic
#2F487E #7E2F70 #7E652F #2F7E3E
square
#2F487E #7E2F70 #7E652F #2F7E3E
split-complementary
#2F487E #7E3E2F #707E2F
monochromatic
#0E1525 #1E2F51 #2F487E #4061AB #6382C5

Accessibility & contrast

On white

8.94
#2F487E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F487E
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F487E#FFFFFF#000000##FFFFFF
##2F487E1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304D80
Deuteranopia (green-blind)
#25467D
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f487e;
/* rgb */ color: rgb(47, 72, 126);
/* oklch */ color: oklch(41.0% 0.096 263.9);
Tailwind
colors: {
  custom: {
    50: '#6f7aa4',
    500: '#2f487e',
    950: '#000000',
  },
}
SCSS
$custom: #2f487e;
$custom-light: #6f7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f487e",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 126
  },
  "hsl": {
    "h": 221.013,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4099,
    "c": 0.09586,
    "h": 263.9
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#2F487E
secondary
#AC935D
accent
#AC52D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F487E

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

Preview Lab → · Contrast checker → · Palette generator →

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