#2F4F95#2F4F95

#2F4F95 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.121 H 263.7°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2F4F95
RGBrgb(47, 79, 149)
HSLhsl(221, 52%, 38%)
HSVhsv(221, 68%, 58%)
CMYKcmyk(68.5%, 47%, 0%, 41.6%)
CIE-LABlab(34.73, 12.48, -42.01)
CIE-LCHlch(34.73, 43.83, 286.54°)
OKLaboklab(44.16% -0.0132 -0.1202)
OKLCHoklch(44.16% 0.121 263.7)
XYZxyz(9.3912, 8.3653, 29.5477)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F95 #95752F
analogous
#2F8295 #2F4F95 #422F95
triadic
#2F4F95 #952F4F #4F952F
tetradic
#2F4F95 #952F82 #95752F #2F9542
square
#2F4F95 #952F82 #95752F #2F9542
split-complementary
#2F4F95 #95422F #82952F
monochromatic
#121E38 #203666 #2F4F95 #3F68C2 #6D8DD1

Accessibility & contrast

On white

7.86
#2F4F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F4F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F95
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F95#FFFFFF#000000##FFFFFF
##2F4F951.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5798
Deuteranopia (green-blind)
#184D94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4f95;
/* rgb */ color: rgb(47, 79, 149);
/* oklch */ color: oklch(44.2% 0.121 263.7);
Tailwind
colors: {
  custom: {
    50: '#737fb5',
    500: '#2f4f95',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f95;
$custom-light: #737fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f95",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 221.176,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44158,
    "c": 0.12095,
    "h": 263.7
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

primary
#2F4F95
secondary
#B89F67
accent
#AF4CDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4F95

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

Preview Lab → · Contrast checker → · Palette generator →

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