#2F4D7B#2F4D7B

#2F4D7B is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.0% C 0.085 H 258.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2F4D7B
RGBrgb(47, 77, 123)
HSLhsl(216, 45%, 33%)
HSVhsv(216, 62%, 48%)
CMYKcmyk(61.8%, 37.4%, 0%, 51.8%)
CIE-LABlab(32.57, 4.14, -29.49)
CIE-LCHlch(32.57, 29.78, 277.99°)
OKLaboklab(41.98% -0.0167 -0.0835)
OKLCHoklch(41.98% 0.085 258.7)
XYZxyz(7.4001, 7.3415, 19.7621)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D7B #7B5D2F
analogous
#2F737B #2F4D7B #372F7B
triadic
#2F4D7B #7B2F4D #4D7B2F
tetradic
#2F4D7B #7B2F73 #7B5D2F #2F7B37
square
#2F4D7B #7B2F73 #7B5D2F #2F7B37
split-complementary
#2F4D7B #7B372F #737B2F
monochromatic
#0D1622 #1E314F #2F4D7B #4069A7 #6288C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4D7B#FFFFFF#000000##FFFFFF
##2F4D7B1.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)
#3A517D
Deuteranopia (green-blind)
#30497A
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4d7b;
/* rgb */ color: rgb(47, 77, 123);
/* oklch */ color: oklch(42.0% 0.085 258.7);
Tailwind
colors: {
  custom: {
    50: '#6f7ea1',
    500: '#2f4d7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d7b;
$custom-light: #6f7ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d7b",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 123
  },
  "hsl": {
    "h": 216.316,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.41983,
    "c": 0.08518,
    "h": 258.7
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#2F4D7B
secondary
#AA8B5C
accent
#A153D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #2F4D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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