#2F417B#2F417B

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

Color values

HEX#2F417B
RGBrgb(47, 65, 123)
HSLhsl(226, 45%, 33%)
HSVhsv(226, 62%, 48%)
CMYKcmyk(61.8%, 47.2%, 0%, 51.8%)
CIE-LABlab(28.94, 12.19, -35.27)
CIE-LCHlch(28.94, 37.31, 289.06°)
OKLaboklab(39.18% -0.0026 -0.1006)
OKLCHoklch(39.18% 0.101 268.5)
XYZxyz(6.6365, 5.8145, 19.5076)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F417B #7B692F
analogous
#2F677B #2F417B #432F7B
triadic
#2F417B #7B2F41 #417B2F
tetradic
#2F417B #7B2F67 #7B692F #2F7B43
square
#2F417B #7B2F67 #7B692F #2F7B43
split-complementary
#2F417B #7B432F #677B2F
monochromatic
#0D1222 #1E2A4F #2F417B #4058A7 #6279C3

Accessibility & contrast

On white

9.71
#2F417B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F417B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F417B#FFFFFF#000000##FFFFFF
##2F417B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487D
Deuteranopia (green-blind)
#1B417A
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f417b;
/* rgb */ color: rgb(47, 65, 123);
/* oklch */ color: oklch(39.2% 0.101 268.5);
Tailwind
colors: {
  custom: {
    50: '#6f75a1',
    500: '#2f417b',
    950: '#000000',
  },
}
SCSS
$custom: #2f417b;
$custom-light: #6f75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f417b",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 123
  },
  "hsl": {
    "h": 225.789,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39179,
    "c": 0.10062,
    "h": 268.5
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#2F417B
secondary
#AA975C
accent
#B653D4
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F417B

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

Preview Lab → · Contrast checker → · Palette generator →

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