#2F4E7C#2F4E7C

#2F4E7C is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.085 H 258.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2F4E7C
RGBrgb(47, 78, 124)
HSLhsl(216, 45%, 34%)
HSVhsv(216, 62%, 49%)
CMYKcmyk(62.1%, 37.1%, 0%, 51.4%)
CIE-LABlab(32.94, 3.85, -29.54)
CIE-LCHlch(32.94, 29.79, 277.42°)
OKLaboklab(42.28% -0.0176 -0.0836)
OKLCHoklch(42.28% 0.085 258.1)
XYZxyz(7.5335, 7.5077, 20.1170)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E7C #7C5D2F
analogous
#2F747C #2F4E7C #362F7C
triadic
#2F4E7C #7C2F4E #4E7C2F
tetradic
#2F4E7C #7C2F74 #7C5D2F #2F7C36
square
#2F4E7C #7C2F74 #7C5D2F #2F7C36
split-complementary
#2F4E7C #7C362F #747C2F
monochromatic
#0D1623 #1E3250 #2F4E7C #406AA8 #6289C3

Accessibility & contrast

On white

8.39
#2F4E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F4E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E7C
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E7C#FFFFFF#000000##FFFFFF
##2F4E7C1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B517E
Deuteranopia (green-blind)
#304A7B
Tritanopia (blue-blind)
#00585F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4e7c;
/* rgb */ color: rgb(47, 78, 124);
/* oklch */ color: oklch(42.3% 0.085 258.1);
Tailwind
colors: {
  custom: {
    50: '#6f7fa2',
    500: '#2f4e7c',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e7c;
$custom-light: #6f7fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e7c",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 215.844,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42284,
    "c": 0.08549,
    "h": 258.1
  },
  "luminance": 0.07508
}

Semantic roles & 50–950 ramp

primary
#2F4E7C
secondary
#AA8B5C
accent
#A153D5
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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