#2F4397#2F4397

#2F4397 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.7% C 0.139 H 269.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2F4397
RGBrgb(47, 67, 151)
HSLhsl(228, 53%, 39%)
HSVhsv(228, 69%, 59%)
CMYKcmyk(68.9%, 55.6%, 0%, 40.8%)
CIE-LABlab(31.47, 21.28, -48.49)
CIE-LCHlch(31.47, 52.96, 293.69°)
OKLaboklab(41.72% -0.0015 -0.1395)
OKLCHoklch(41.72% 0.139 269.4)
XYZxyz(8.7635, 6.8522, 30.1329)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4397 #97832F
analogous
#2F7797 #2F4397 #4F2F97
triadic
#2F4397 #972F43 #43972F
tetradic
#2F4397 #972F77 #97832F #2F974F
square
#2F4397 #972F77 #97832F #2F974F
split-complementary
#2F4397 #974F2F #77972F
monochromatic
#121A3A #202E68 #2F4397 #4059C3 #6E82D2

Accessibility & contrast

On white

8.86
#2F4397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F4397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4397
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4397#FFFFFF#000000##FFFFFF
##2F43971.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4397;
/* rgb */ color: rgb(47, 67, 151);
/* oklch */ color: oklch(41.7% 0.139 269.4);
Tailwind
colors: {
  custom: {
    50: '#7476b6',
    500: '#2f4397',
    950: '#000000',
  },
}
SCSS
$custom: #2f4397;
$custom-light: #7476b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4397",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 228.462,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41722,
    "c": 0.13947,
    "h": 269.4
  },
  "luminance": 0.06853
}

Semantic roles & 50–950 ramp

primary
#2F4397
secondary
#B9AA68
accent
#C04CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4397

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

Preview Lab → · Contrast checker → · Palette generator →

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