#2F4D95#2F4D95

#2F4D95 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.7% C 0.124 H 264.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2F4D95
RGBrgb(47, 77, 149)
HSLhsl(222, 52%, 38%)
HSVhsv(222, 68%, 58%)
CMYKcmyk(68.5%, 48.3%, 0%, 41.6%)
CIE-LABlab(34.15, 13.81, -42.95)
CIE-LCHlch(34.15, 45.11, 287.83°)
OKLaboklab(43.71% -0.0113 -0.123)
OKLCHoklch(43.71% 0.124 264.8)
XYZxyz(9.2491, 8.0811, 29.5003)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D95 #95772F
analogous
#2F8095 #2F4D95 #442F95
triadic
#2F4D95 #952F4D #4D952F
tetradic
#2F4D95 #952F80 #95772F #2F9544
square
#2F4D95 #952F80 #95772F #2F9544
split-complementary
#2F4D95 #95442F #80952F
monochromatic
#121D38 #203566 #2F4D95 #3F66C2 #6D8BD1

Accessibility & contrast

On white

8.03
#2F4D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F4D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D95
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D95#FFFFFF#000000##FFFFFF
##2F4D951.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285598
Deuteranopia (green-blind)
#114C94
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4d95;
/* rgb */ color: rgb(47, 77, 149);
/* oklch */ color: oklch(43.7% 0.124 264.8);
Tailwind
colors: {
  custom: {
    50: '#737eb5',
    500: '#2f4d95',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d95;
$custom-light: #737eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d95",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 149
  },
  "hsl": {
    "h": 222.353,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43713,
    "c": 0.12351,
    "h": 264.8
  },
  "luminance": 0.08082
}

Semantic roles & 50–950 ramp

primary
#2F4D95
secondary
#B8A167
accent
#B14CDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4D95

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

Preview Lab → · Contrast checker → · Palette generator →

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