#2F407F#2F407F

#2F407F is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.108 H 269.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2F407F
RGBrgb(47, 64, 127)
HSLhsl(227, 46%, 34%)
HSVhsv(227, 63%, 50%)
CMYKcmyk(63%, 49.6%, 0%, 50.2%)
CIE-LABlab(28.91, 14.35, -37.82)
CIE-LCHlch(28.91, 40.45, 290.78°)
OKLaboklab(39.24% -0.0009 -0.1081)
OKLCHoklch(39.24% 0.108 269.5)
XYZxyz(6.8352, 5.8029, 20.8344)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F407F #7F6E2F
analogous
#2F687F #2F407F #462F7F
triadic
#2F407F #7F2F40 #407F2F
tetradic
#2F407F #7F2F68 #7F6E2F #2F7F46
square
#2F407F #7F2F68 #7F6E2F #2F7F46
split-complementary
#2F407F #7F462F #687F2F
monochromatic
#0E1326 #1E2952 #2F407F #4057AC #6378C5

Accessibility & contrast

On white

9.72
#2F407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F407F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F407F#FFFFFF#000000##FFFFFF
##2F407F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#12417E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f407f;
/* rgb */ color: rgb(47, 64, 127);
/* oklch */ color: oklch(39.2% 0.108 269.5);
Tailwind
colors: {
  custom: {
    50: '#7074a4',
    500: '#2f407f',
    950: '#000000',
  },
}
SCSS
$custom: #2f407f;
$custom-light: #7074a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f407f",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 227.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.1081,
    "h": 269.5
  },
  "luminance": 0.05803
}

Semantic roles & 50–950 ramp

primary
#2F407F
secondary
#AC9B5E
accent
#BA52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F407F

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

Preview Lab → · Contrast checker → · Palette generator →

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