#2F3A71#2F3A71

#2F3A71 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.9% C 0.095 H 272.4°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2F3A71
RGBrgb(47, 58, 113)
HSLhsl(230, 41%, 31%)
HSVhsv(230, 58%, 44%)
CMYKcmyk(58.4%, 48.7%, 0%, 55.7%)
CIE-LABlab(26.22, 13.32, -33.29)
CIE-LCHlch(26.22, 35.86, 291.80°)
OKLaboklab(36.9% 0.0041 -0.0949)
OKLCHoklch(36.9% 0.095 272.4)
XYZxyz(5.6650, 4.8223, 16.2519)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A71 #71662F
analogous
#2F5B71 #2F3A71 #452F71
triadic
#2F3A71 #712F3A #3A712F
tetradic
#2F3A71 #712F5B #71662F #2F7145
square
#2F3A71 #712F5B #71662F #2F7145
split-complementary
#2F3A71 #71452F #5B712F
monochromatic
#0B0E1B #1D2446 #2F3A71 #41509C #5E6EBC

Accessibility & contrast

On white

10.69
#2F3A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F3A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A71
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A71#FFFFFF#000000##FFFFFF
##2F3A711.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214173
Deuteranopia (green-blind)
#183B70
Tritanopia (blue-blind)
#0A4650
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f3a71;
/* rgb */ color: rgb(47, 58, 113);
/* oklch */ color: oklch(36.9% 0.095 272.4);
Tailwind
colors: {
  custom: {
    50: '#6d6f9a',
    500: '#2f3a71',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a71;
$custom-light: #6d6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a71",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 113
  },
  "hsl": {
    "h": 230,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.09497,
    "h": 272.4
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#2F3A71
secondary
#A2965A
accent
#BD57D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2F3A71

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

Preview Lab → · Contrast checker → · Palette generator →

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