#2F416F#2F416F

#2F416F is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.082 H 266.5°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2F416F
RGBrgb(47, 65, 111)
HSLhsl(223, 41%, 31%)
HSVhsv(223, 58%, 44%)
CMYKcmyk(57.7%, 41.4%, 0%, 56.5%)
CIE-LABlab(28.20, 7.80, -28.87)
CIE-LCHlch(28.20, 29.91, 285.12°)
OKLaboklab(38.37% -0.0051 -0.0818)
OKLCHoklch(38.37% 0.082 266.5)
XYZxyz(5.9309, 5.5322, 15.7911)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F416F #6F5D2F
analogous
#2F616F #2F416F #3D2F6F
triadic
#2F416F #6F2F41 #416F2F
tetradic
#2F416F #6F2F61 #6F5D2F #2F6F3D
square
#2F416F #6F2F61 #6F5D2F #2F6F3D
split-complementary
#2F416F #6F3D2F #616F2F
monochromatic
#0B0F19 #1D2844 #2F416F #415A9A #5E78BB

Accessibility & contrast

On white

9.97
#2F416F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F416F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F416F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F416F#FFFFFF#000000##FFFFFF
##2F416F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4671
Deuteranopia (green-blind)
#26406E
Tritanopia (blue-blind)
#0B4B52
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f416f;
/* rgb */ color: rgb(47, 65, 111);
/* oklch */ color: oklch(38.4% 0.082 266.5);
Tailwind
colors: {
  custom: {
    50: '#6d7598',
    500: '#2f416f',
    950: '#000000',
  },
}
SCSS
$custom: #2f416f;
$custom-light: #6d7598;
$custom-dark: #000000;
JSON
{
  "hex": "#2f416f",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 111
  },
  "hsl": {
    "h": 223.125,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38371,
    "c": 0.082,
    "h": 266.5
  },
  "luminance": 0.05533
}

Semantic roles & 50–950 ramp

primary
#2F416F
secondary
#A08C59
accent
#AE57D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F416F

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

Preview Lab → · Contrast checker → · Palette generator →

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