#2F417F#2F417F

#2F417F is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.107 H 268.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2F417F
RGBrgb(47, 65, 127)
HSLhsl(227, 46%, 34%)
HSVhsv(227, 63%, 50%)
CMYKcmyk(63%, 48.8%, 0%, 50.2%)
CIE-LABlab(29.20, 13.67, -37.35)
CIE-LCHlch(29.20, 39.77, 290.10°)
OKLaboklab(39.46% -0.002 -0.1067)
OKLCHoklch(39.46% 0.107 268.9)
XYZxyz(6.8921, 5.9167, 20.8534)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F417F #7F6D2F
analogous
#2F697F #2F417F #452F7F
triadic
#2F417F #7F2F41 #417F2F
tetradic
#2F417F #7F2F69 #7F6D2F #2F7F45
square
#2F417F #7F2F69 #7F6D2F #2F7F45
split-complementary
#2F417F #7F452F #697F2F
monochromatic
#0E1326 #1E2A52 #2F417F #4058AC #6379C5

Accessibility & contrast

On white

9.62
#2F417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F417F
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F417F#FFFFFF#000000##FFFFFF
##2F417F1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234981
Deuteranopia (green-blind)
#15417E
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f417f;
/* rgb */ color: rgb(47, 65, 127);
/* oklch */ color: oklch(39.5% 0.107 268.9);
Tailwind
colors: {
  custom: {
    50: '#7075a4',
    500: '#2f417f',
    950: '#000000',
  },
}
SCSS
$custom: #2f417f;
$custom-light: #7075a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f417f",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 226.5,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39463,
    "c": 0.10673,
    "h": 268.9
  },
  "luminance": 0.05917
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F417F

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

Preview Lab → · Contrast checker → · Palette generator →

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