#2F405E#2F405E

#2F405E is a dark, muted blue. Relative luminance 0.051; OKLCH L 37.1% C 0.056 H 261.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2F405E
RGBrgb(47, 64, 94)
HSLhsl(218, 33%, 28%)
HSVhsv(218, 50%, 37%)
CMYKcmyk(50%, 31.9%, 0%, 63.1%)
CIE-LABlab(26.96, 2.50, -19.93)
CIE-LCHlch(26.96, 20.08, 277.14°)
OKLaboklab(37.1% -0.0085 -0.0558)
OKLCHoklch(37.1% 0.056 261.4)
XYZxyz(5.0254, 5.0790, 11.3030)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F405E #5E4D2F
analogous
#2F575E #2F405E #362F5E
triadic
#2F405E #5E2F40 #405E2F
tetradic
#2F405E #5E2F57 #5E4D2F #2F5E36
square
#2F405E #5E2F57 #5E4D2F #2F5E36
split-complementary
#2F405E #5E362F #575E2F
monochromatic
#0A0E14 #1B2435 #2F405E #435C87 #5B78AD

Accessibility & contrast

On white

10.42
#2F405E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F405E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F405E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F405E#FFFFFF#000000##FFFFFF
##2F405E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35425F
Deuteranopia (green-blind)
#303E5D
Tritanopia (blue-blind)
#1C464B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f405e;
/* rgb */ color: rgb(47, 64, 94);
/* oklch */ color: oklch(37.1% 0.056 261.4);
Tailwind
colors: {
  custom: {
    50: '#6a748b',
    500: '#2f405e',
    950: '#000000',
  },
}
SCSS
$custom: #2f405e;
$custom-light: #6a748b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f405e",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 94
  },
  "hsl": {
    "h": 218.298,
    "s": 33.333,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37103,
    "c": 0.05647,
    "h": 261.4
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#2F405E
secondary
#907C59
accent
#A35EC9
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #2F405E

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

Preview Lab → · Contrast checker → · Palette generator →

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