#2F4597#2F4597

#2F4597 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.137 H 268.6°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2F4597
RGBrgb(47, 69, 151)
HSLhsl(227, 53%, 39%)
HSVhsv(227, 69%, 59%)
CMYKcmyk(68.9%, 54.3%, 0%, 40.8%)
CIE-LABlab(32.02, 19.93, -47.60)
CIE-LCHlch(32.02, 51.60, 292.72°)
OKLaboklab(42.14% -0.0034 -0.1368)
OKLCHoklch(42.14% 0.137 268.6)
XYZxyz(8.8844, 7.0941, 30.1732)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4597 #97812F
analogous
#2F7997 #2F4597 #4D2F97
triadic
#2F4597 #972F45 #45972F
tetradic
#2F4597 #972F79 #97812F #2F974D
square
#2F4597 #972F79 #97812F #2F974D
split-complementary
#2F4597 #974D2F #79972F
monochromatic
#121A3A #203068 #2F4597 #405CC3 #6E83D2

Accessibility & contrast

On white

8.68
#2F4597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F4597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4597
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4597#FFFFFF#000000##FFFFFF
##2F45971.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C509A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4597;
/* rgb */ color: rgb(47, 69, 151);
/* oklch */ color: oklch(42.1% 0.137 268.6);
Tailwind
colors: {
  custom: {
    50: '#7478b6',
    500: '#2f4597',
    950: '#000000',
  },
}
SCSS
$custom: #2f4597;
$custom-light: #7478b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4597",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 151
  },
  "hsl": {
    "h": 227.308,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42138,
    "c": 0.13684,
    "h": 268.6
  },
  "luminance": 0.07095
}

Semantic roles & 50–950 ramp

primary
#2F4597
secondary
#B9A868
accent
#BD4CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4597

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

Preview Lab → · Contrast checker → · Palette generator →

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