#2F4E7A#2F4E7A

#2F4E7A is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.2% C 0.083 H 257.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#2F4E7A
RGBrgb(47, 78, 122)
HSLhsl(215, 44%, 33%)
HSVhsv(215, 61%, 48%)
CMYKcmyk(61.5%, 36.1%, 0%, 52.2%)
CIE-LABlab(32.83, 3.12, -28.47)
CIE-LCHlch(32.83, 28.64, 276.26°)
OKLaboklab(42.16% -0.0182 -0.0805)
OKLCHoklch(42.16% 0.083 257.3)
XYZxyz(7.4083, 7.4576, 19.4576)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E7A #7A5B2F
analogous
#2F737A #2F4E7A #352F7A
triadic
#2F4E7A #7A2F4E #4E7A2F
tetradic
#2F4E7A #7A2F73 #7A5B2F #2F7A35
square
#2F4E7A #7A2F73 #7A5B2F #2F7A35
split-complementary
#2F4E7A #7A352F #737A2F
monochromatic
#0D1622 #1E324E #2F4E7A #406AA6 #6189C2

Accessibility & contrast

On white

8.43
#2F4E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F4E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E7A
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E7A#FFFFFF#000000##FFFFFF
##2F4E7A1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517C
Deuteranopia (green-blind)
#324A79
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4e7a;
/* rgb */ color: rgb(47, 78, 122);
/* oklch */ color: oklch(42.2% 0.083 257.3);
Tailwind
colors: {
  custom: {
    50: '#6e7fa0',
    500: '#2f4e7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e7a;
$custom-light: #6e7fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e7a",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 122
  },
  "hsl": {
    "h": 215.2,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42163,
    "c": 0.08256,
    "h": 257.3
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

primary
#2F4E7A
secondary
#A9895C
accent
#9F54D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #2F4E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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