#2F4B97#2F4B97

#2F4B97 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.129 H 266.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2F4B97
RGBrgb(47, 75, 151)
HSLhsl(224, 53%, 39%)
HSVhsv(224, 69%, 59%)
CMYKcmyk(68.9%, 50.3%, 0%, 40.8%)
CIE-LABlab(33.71, 15.90, -44.87)
CIE-LCHlch(33.71, 47.60, 289.51°)
OKLaboklab(43.42% -0.009 -0.1287)
OKLCHoklch(43.42% 0.129 266)
XYZxyz(9.2723, 7.8700, 30.3026)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B97 #977B2F
analogous
#2F7F97 #2F4B97 #472F97
triadic
#2F4B97 #972F4B #4B972F
tetradic
#2F4B97 #972F7F #977B2F #2F9747
square
#2F4B97 #972F7F #977B2F #2F9747
split-complementary
#2F4B97 #97472F #7F972F
monochromatic
#121D3A #203468 #2F4B97 #4063C3 #6E89D2

Accessibility & contrast

On white

8.16
#2F4B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F4B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B97
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B97#FFFFFF#000000##FFFFFF
##2F4B971.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21549A
Deuteranopia (green-blind)
#014B95
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4b97;
/* rgb */ color: rgb(47, 75, 151);
/* oklch */ color: oklch(43.4% 0.129 266.0);
Tailwind
colors: {
  custom: {
    50: '#747cb6',
    500: '#2f4b97',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b97;
$custom-light: #747cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b97",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 151
  },
  "hsl": {
    "h": 223.846,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4342,
    "c": 0.129,
    "h": 266
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#2F4B97
secondary
#B9A468
accent
#B54CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4B97

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

Preview Lab → · Contrast checker → · Palette generator →

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