#2F487B#2F487B

#2F487B is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.091 H 263.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F487B
RGBrgb(47, 72, 123)
HSLhsl(220, 45%, 33%)
HSVhsv(220, 62%, 48%)
CMYKcmyk(61.8%, 41.5%, 0%, 51.8%)
CIE-LABlab(31.04, 7.46, -31.92)
CIE-LCHlch(31.04, 32.78, 283.15°)
OKLaboklab(40.79% -0.0108 -0.0907)
OKLCHoklch(40.79% 0.091 263.2)
XYZxyz(7.0636, 6.6685, 19.6500)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F487B #7B622F
analogous
#2F6E7B #2F487B #3C2F7B
triadic
#2F487B #7B2F48 #487B2F
tetradic
#2F487B #7B2F6E #7B622F #2F7B3C
square
#2F487B #7B2F6E #7B622F #2F7B3C
split-complementary
#2F487B #7B3C2F #6E7B2F
monochromatic
#0D1422 #1E2E4F #2F487B #4062A7 #6282C3

Accessibility & contrast

On white

9.00
#2F487B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F487B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F487B
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F487B#FFFFFF#000000##FFFFFF
##2F487B1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324D7D
Deuteranopia (green-blind)
#28467A
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f487b;
/* rgb */ color: rgb(47, 72, 123);
/* oklch */ color: oklch(40.8% 0.091 263.2);
Tailwind
colors: {
  custom: {
    50: '#6f7aa1',
    500: '#2f487b',
    950: '#000000',
  },
}
SCSS
$custom: #2f487b;
$custom-light: #6f7aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f487b",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 123
  },
  "hsl": {
    "h": 220.263,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.09132,
    "h": 263.2
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#2F487B
secondary
#AA905C
accent
#AA53D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #2F487B

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

Preview Lab → · Contrast checker → · Palette generator →

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