#2F4A8A#2F4A8A

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

Color values

HEX#2F4A8A
RGBrgb(47, 74, 138)
HSLhsl(222, 49%, 36%)
HSVhsv(222, 66%, 54%)
CMYKcmyk(65.9%, 46.4%, 0%, 45.9%)
CIE-LABlab(32.56, 11.68, -38.78)
CIE-LCHlch(32.56, 40.50, 286.77°)
OKLaboklab(42.26% -0.01 -0.1108)
OKLCHoklch(42.26% 0.111 264.8)
XYZxyz(8.2069, 7.3361, 25.0233)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A8A #8A6F2F
analogous
#2F788A #2F4A8A #422F8A
triadic
#2F4A8A #8A2F4A #4A8A2F
tetradic
#2F4A8A #8A2F78 #8A6F2F #2F8A42
square
#2F4A8A #8A2F78 #8A6F2F #2F8A42
split-complementary
#2F4A8A #8A422F #788A2F
monochromatic
#10192F #1F325C #2F4A8A #3F62B8 #6885CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4A8A#FFFFFF#000000##FFFFFF
##2F4A8A1.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)
#2B518C
Deuteranopia (green-blind)
#1C4989
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4a8a;
/* rgb */ color: rgb(47, 74, 138);
/* oklch */ color: oklch(42.3% 0.111 264.8);
Tailwind
colors: {
  custom: {
    50: '#717cac',
    500: '#2f4a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a8a;
$custom-light: #717cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a8a",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 222.198,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42264,
    "c": 0.11124,
    "h": 264.8
  },
  "luminance": 0.07337
}

Semantic roles & 50–950 ramp

primary
#2F4A8A
secondary
#B39B62
accent
#B04FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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