#2F486C#2F486C

#2F486C is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.9% C 0.069 H 257.5°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2F486C
RGBrgb(47, 72, 108)
HSLhsl(215, 39%, 30%)
HSVhsv(215, 56%, 42%)
CMYKcmyk(56.5%, 33.3%, 0%, 57.6%)
CIE-LABlab(30.21, 2.05, -23.80)
CIE-LCHlch(30.21, 23.89, 274.92°)
OKLaboklab(39.88% -0.0149 -0.067)
OKLCHoklch(39.88% 0.069 257.5)
XYZxyz(6.1955, 6.3213, 15.0781)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F486C #6C532F
analogous
#2F666C #2F486C #342F6C
triadic
#2F486C #6C2F48 #486C2F
tetradic
#2F486C #6C2F66 #6C532F #2F6C34
square
#2F486C #6C2F66 #6C532F #2F6C34
split-complementary
#2F486C #6C342F #666C2F
monochromatic
#0A0F17 #1C2C41 #2F486C #426497 #5D82B8

Accessibility & contrast

On white

9.27
#2F486C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F486C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F486C
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F486C#FFFFFF#000000##FFFFFF
##2F486C1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4A6E
Deuteranopia (green-blind)
#32446B
Tritanopia (blue-blind)
#0D5055
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f486c;
/* rgb */ color: rgb(47, 72, 108);
/* oklch */ color: oklch(39.9% 0.069 257.5);
Tailwind
colors: {
  custom: {
    50: '#6c7a96',
    500: '#2f486c',
    950: '#000000',
  },
}
SCSS
$custom: #2f486c;
$custom-light: #6c7a96;
$custom-dark: #000000;
JSON
{
  "hex": "#2f486c",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 108
  },
  "hsl": {
    "h": 215.41,
    "s": 39.355,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39877,
    "c": 0.06863,
    "h": 257.5
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#2F486C
secondary
#9D8259
accent
#9F59CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #2F486C

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

Preview Lab → · Contrast checker → · Palette generator →

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