#2F417D#2F417D

#2F417D is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.104 H 268.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2F417D
RGBrgb(47, 65, 125)
HSLhsl(226, 45%, 34%)
HSVhsv(226, 62%, 49%)
CMYKcmyk(62.4%, 48%, 0%, 51%)
CIE-LABlab(29.07, 12.93, -36.31)
CIE-LCHlch(29.07, 38.54, 289.60°)
OKLaboklab(39.32% -0.0023 -0.1037)
OKLCHoklch(39.32% 0.104 268.7)
XYZxyz(6.7630, 5.8650, 20.1737)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F417D #7D6B2F
analogous
#2F687D #2F417D #442F7D
triadic
#2F417D #7D2F41 #417D2F
tetradic
#2F417D #7D2F68 #7D6B2F #2F7D44
square
#2F417D #7D2F68 #7D6B2F #2F7D44
split-complementary
#2F417D #7D442F #687D2F
monochromatic
#0E1324 #1E2A51 #2F417D #4058A9 #6279C4

Accessibility & contrast

On white

9.66
#2F417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F417D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F417D#FFFFFF#000000##FFFFFF
##2F417D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#18417C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f417d;
/* rgb */ color: rgb(47, 65, 125);
/* oklch */ color: oklch(39.3% 0.104 268.7);
Tailwind
colors: {
  custom: {
    50: '#6f75a3',
    500: '#2f417d',
    950: '#000000',
  },
}
SCSS
$custom: #2f417d;
$custom-light: #6f75a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f417d",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 226.154,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3932,
    "c": 0.10369,
    "h": 268.7
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#2F417D
secondary
#AB995D
accent
#B753D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F417D

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

Preview Lab → · Contrast checker → · Palette generator →

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