#2F487C#2F487C

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

Color values

HEX#2F487C
RGBrgb(47, 72, 124)
HSLhsl(221, 45%, 34%)
HSVhsv(221, 62%, 49%)
CMYKcmyk(62.1%, 41.9%, 0%, 51.4%)
CIE-LABlab(31.10, 7.82, -32.45)
CIE-LCHlch(31.10, 33.38, 283.56°)
OKLaboklab(40.86% -0.0106 -0.0922)
OKLCHoklch(40.86% 0.093 263.5)
XYZxyz(7.1265, 6.6937, 19.9813)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F487C #7C632F
analogous
#2F6E7C #2F487C #3C2F7C
triadic
#2F487C #7C2F48 #487C2F
tetradic
#2F487C #7C2F6E #7C632F #2F7C3C
square
#2F487C #7C2F6E #7C632F #2F7C3C
split-complementary
#2F487C #7C3C2F #6E7C2F
monochromatic
#0D1423 #1E2E50 #2F487C #4062A8 #6282C3

Accessibility & contrast

On white

8.98
#2F487C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F487C
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F487C#FFFFFF#000000##FFFFFF
##2F487C1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7E
Deuteranopia (green-blind)
#27467B
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f487c;
/* rgb */ color: rgb(47, 72, 124);
/* oklch */ color: oklch(40.9% 0.093 263.5);
Tailwind
colors: {
  custom: {
    50: '#6f7aa2',
    500: '#2f487c',
    950: '#000000',
  },
}
SCSS
$custom: #2f487c;
$custom-light: #6f7aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f487c",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 124
  },
  "hsl": {
    "h": 220.519,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40859,
    "c": 0.09283,
    "h": 263.5
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

primary
#2F487C
secondary
#AA915C
accent
#AB53D5
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F487C

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

Preview Lab → · Contrast checker → · Palette generator →

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