#2F417A#2F417A

#2F417A is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.099 H 268.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2F417A
RGBrgb(47, 65, 122)
HSLhsl(226, 44%, 33%)
HSVhsv(226, 61%, 48%)
CMYKcmyk(61.5%, 46.7%, 0%, 52.2%)
CIE-LABlab(28.88, 11.82, -34.74)
CIE-LCHlch(28.88, 36.70, 288.79°)
OKLaboklab(39.11% -0.0028 -0.099)
OKLCHoklch(39.11% 0.099 268.4)
XYZxyz(6.5743, 5.7895, 19.1796)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F417A #7A682F
analogous
#2F667A #2F417A #422F7A
triadic
#2F417A #7A2F41 #417A2F
tetradic
#2F417A #7A2F66 #7A682F #2F7A42
square
#2F417A #7A2F66 #7A682F #2F7A42
split-complementary
#2F417A #7A422F #667A2F
monochromatic
#0D1222 #1E294E #2F417A #4059A6 #6178C2

Accessibility & contrast

On white

9.73
#2F417A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F417A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F417A#FFFFFF#000000##FFFFFF
##2F417A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487C
Deuteranopia (green-blind)
#1C4179
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f417a;
/* rgb */ color: rgb(47, 65, 122);
/* oklch */ color: oklch(39.1% 0.099 268.4);
Tailwind
colors: {
  custom: {
    50: '#6f75a1',
    500: '#2f417a',
    950: '#000000',
  },
}
SCSS
$custom: #2f417a;
$custom-light: #6f75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f417a",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 225.6,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39109,
    "c": 0.09909,
    "h": 268.4
  },
  "luminance": 0.0579
}

Semantic roles & 50–950 ramp

primary
#2F417A
secondary
#A9975C
accent
#B554D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #2F417A

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

Preview Lab → · Contrast checker → · Palette generator →

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