#2F4797#2F4797

#2F4797 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.134 H 267.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2F4797
RGBrgb(47, 71, 151)
HSLhsl(226, 53%, 39%)
HSVhsv(226, 69%, 59%)
CMYKcmyk(68.9%, 53%, 0%, 40.8%)
CIE-LABlab(32.58, 18.59, -46.70)
CIE-LCHlch(32.58, 50.26, 291.71°)
OKLaboklab(42.56% -0.0052 -0.1341)
OKLCHoklch(42.56% 0.134 267.8)
XYZxyz(9.0095, 7.3443, 30.2149)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4797 #977F2F
analogous
#2F7B97 #2F4797 #4B2F97
triadic
#2F4797 #972F47 #47972F
tetradic
#2F4797 #972F7B #977F2F #2F974B
square
#2F4797 #972F7B #977F2F #2F974B
split-complementary
#2F4797 #974B2F #7B972F
monochromatic
#121B3A #203168 #2F4797 #405EC3 #6E85D2

Accessibility & contrast

On white

8.51
#2F4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4797
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4797#FFFFFF#000000##FFFFFF
##2F47971.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4797;
/* rgb */ color: rgb(47, 71, 151);
/* oklch */ color: oklch(42.6% 0.134 267.8);
Tailwind
colors: {
  custom: {
    50: '#7479b6',
    500: '#2f4797',
    950: '#000000',
  },
}
SCSS
$custom: #2f4797;
$custom-light: #7479b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4797",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 226.154,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4256,
    "c": 0.13422,
    "h": 267.8
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#2F4797
secondary
#B9A768
accent
#BB4CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4797

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

Preview Lab → · Contrast checker → · Palette generator →

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