#2F4E95#2F4E95

#2F4E95 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.122 H 264.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2F4E95
RGBrgb(47, 78, 149)
HSLhsl(222, 52%, 38%)
HSVhsv(222, 68%, 58%)
CMYKcmyk(68.5%, 47.7%, 0%, 41.6%)
CIE-LABlab(34.44, 13.14, -42.48)
CIE-LCHlch(34.44, 44.47, 287.19°)
OKLaboklab(43.94% -0.0123 -0.1216)
OKLCHoklch(43.94% 0.122 264.2)
XYZxyz(9.3196, 8.2221, 29.5238)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E95 #95762F
analogous
#2F8195 #2F4E95 #432F95
triadic
#2F4E95 #952F4E #4E952F
tetradic
#2F4E95 #952F81 #95762F #2F9543
square
#2F4E95 #952F81 #95762F #2F9543
split-complementary
#2F4E95 #95432F #81952F
monochromatic
#121D38 #203666 #2F4E95 #3F67C2 #6D8CD1

Accessibility & contrast

On white

7.94
#2F4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E95
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E95#FFFFFF#000000##FFFFFF
##2F4E951.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5698
Deuteranopia (green-blind)
#154D94
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4e95;
/* rgb */ color: rgb(47, 78, 149);
/* oklch */ color: oklch(43.9% 0.122 264.2);
Tailwind
colors: {
  custom: {
    50: '#737fb5',
    500: '#2f4e95',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e95;
$custom-light: #737fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e95",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 221.765,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43935,
    "c": 0.12223,
    "h": 264.2
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#2F4E95
secondary
#B8A067
accent
#B04CDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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