#2F486F#2F486F

#2F486F is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.073 H 259.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2F486F
RGBrgb(47, 72, 111)
HSLhsl(217, 41%, 31%)
HSVhsv(217, 58%, 44%)
CMYKcmyk(57.7%, 35.1%, 0%, 56.5%)
CIE-LABlab(30.37, 3.11, -25.45)
CIE-LCHlch(30.37, 25.64, 276.97°)
OKLaboklab(40.05% -0.014 -0.0718)
OKLCHoklch(40.05% 0.073 259)
XYZxyz(6.3579, 6.3863, 15.9335)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F486F #6F562F
analogous
#2F686F #2F486F #362F6F
triadic
#2F486F #6F2F48 #486F2F
tetradic
#2F486F #6F2F68 #6F562F #2F6F36
square
#2F486F #6F2F68 #6F562F #2F6F36
split-complementary
#2F486F #6F362F #686F2F
monochromatic
#0B1019 #1D2C44 #2F486F #41649A #5E82BB

Accessibility & contrast

On white

9.22
#2F486F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F486F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F486F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F486F#FFFFFF#000000##FFFFFF
##2F486F1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384B71
Deuteranopia (green-blind)
#30456E
Tritanopia (blue-blind)
#085156
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f486f;
/* rgb */ color: rgb(47, 72, 111);
/* oklch */ color: oklch(40.1% 0.073 259.0);
Tailwind
colors: {
  custom: {
    50: '#6d7a98',
    500: '#2f486f',
    950: '#000000',
  },
}
SCSS
$custom: #2f486f;
$custom-light: #6d7a98;
$custom-dark: #000000;
JSON
{
  "hex": "#2f486f",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 111
  },
  "hsl": {
    "h": 216.563,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40052,
    "c": 0.07313,
    "h": 259
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#2F486F
secondary
#A08559
accent
#A157D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #2F486F

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

Preview Lab → · Contrast checker → · Palette generator →

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