#2F405C#2F405C

#2F405C is a dark, muted blue. Relative luminance 0.050; OKLCH L 37.0% C 0.053 H 260.1°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2F405C
RGBrgb(47, 64, 92)
HSLhsl(217, 32%, 27%)
HSVhsv(217, 49%, 36%)
CMYKcmyk(48.9%, 30.4%, 0%, 63.9%)
CIE-LABlab(26.86, 1.82, -18.79)
CIE-LCHlch(26.86, 18.88, 275.53°)
OKLaboklab(36.99% -0.0092 -0.0525)
OKLCHoklch(36.99% 0.053 260.1)
XYZxyz(4.9368, 5.0435, 10.8365)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F405C #5C4B2F
analogous
#2F575C #2F405C #342F5C
triadic
#2F405C #5C2F40 #405C2F
tetradic
#2F405C #5C2F57 #5C4B2F #2F5C34
square
#2F405C #5C2F57 #5C4B2F #2F5C34
split-complementary
#2F405C #5C342F #575C2F
monochromatic
#0A0E14 #1A2433 #2F405C #445C85 #5A79AB

Accessibility & contrast

On white

10.45
#2F405C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F405C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F405C
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F405C#FFFFFF#000000##FFFFFF
##2F405C1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36425D
Deuteranopia (green-blind)
#313E5B
Tritanopia (blue-blind)
#1D464A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f405c;
/* rgb */ color: rgb(47, 64, 92);
/* oklch */ color: oklch(37.0% 0.053 260.1);
Tailwind
colors: {
  custom: {
    50: '#6a748a',
    500: '#2f405c',
    950: '#000000',
  },
}
SCSS
$custom: #2f405c;
$custom-light: #6a748a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f405c",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 92
  },
  "hsl": {
    "h": 217.333,
    "s": 32.374,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36992,
    "c": 0.05334,
    "h": 260.1
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#2F405C
secondary
#8E7A59
accent
#A15FC9
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#06080B
muted
#7A7B7C

Preview Lab

Preview with #2F405C

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

Preview Lab → · Contrast checker → · Palette generator →

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