#2F4479#2F4479

#2F4479 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.7% C 0.093 H 266.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2F4479
RGBrgb(47, 68, 121)
HSLhsl(223, 44%, 33%)
HSVhsv(223, 61%, 47%)
CMYKcmyk(61.2%, 43.8%, 0%, 52.5%)
CIE-LABlab(29.71, 9.41, -32.78)
CIE-LCHlch(29.71, 34.11, 286.02°)
OKLaboklab(39.73% -0.0065 -0.0933)
OKLCHoklch(39.73% 0.093 266)
XYZxyz(6.6894, 6.1185, 18.9139)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4479 #79642F
analogous
#2F6979 #2F4479 #3F2F79
triadic
#2F4479 #792F44 #44792F
tetradic
#2F4479 #792F69 #79642F #2F793F
square
#2F4479 #792F69 #79642F #2F793F
split-complementary
#2F4479 #793F2F #69792F
monochromatic
#0D1221 #1E2B4D #2F4479 #405DA5 #617CC2

Accessibility & contrast

On white

9.44
#2F4479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F4479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4479
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4479#FFFFFF#000000##FFFFFF
##2F44791.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7B
Deuteranopia (green-blind)
#234378
Tritanopia (blue-blind)
#005058
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4479;
/* rgb */ color: rgb(47, 68, 121);
/* oklch */ color: oklch(39.7% 0.093 266.0);
Tailwind
colors: {
  custom: {
    50: '#6e77a0',
    500: '#2f4479',
    950: '#000000',
  },
}
SCSS
$custom: #2f4479;
$custom-light: #6e77a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4479",
  "rgb": {
    "r": 47,
    "g": 68,
    "b": 121
  },
  "hsl": {
    "h": 222.973,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39729,
    "c": 0.09349,
    "h": 266
  },
  "luminance": 0.06119
}

Semantic roles & 50–950 ramp

primary
#2F4479
secondary
#A8935B
accent
#B054D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #2F4479

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

Preview Lab → · Contrast checker → · Palette generator →

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