#2F3671#2F3671

#2F3671 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.0% C 0.101 H 275.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2F3671
RGBrgb(47, 54, 113)
HSLhsl(234, 41%, 31%)
HSVhsv(234, 58%, 44%)
CMYKcmyk(58.4%, 52.2%, 0%, 55.7%)
CIE-LABlab(25.06, 16.08, -35.16)
CIE-LCHlch(25.06, 38.66, 294.57°)
OKLaboklab(36.01% 0.0089 -0.1004)
OKLCHoklch(36.01% 0.101 275.1)
XYZxyz(5.4711, 4.4345, 16.1872)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3671 #716A2F
analogous
#2F5771 #2F3671 #492F71
triadic
#2F3671 #712F36 #36712F
tetradic
#2F3671 #712F57 #716A2F #2F7149
square
#2F3671 #712F57 #716A2F #2F7149
split-complementary
#2F3671 #71492F #57712F
monochromatic
#0B0D1B #1D2146 #2F3671 #414B9C #5E68BC

Accessibility & contrast

On white

11.13
#2F3671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F3671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3671
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3671#FFFFFF#000000##FFFFFF
##2F36711.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#0E3970
Tritanopia (blue-blind)
#0B434E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3671;
/* rgb */ color: rgb(47, 54, 113);
/* oklch */ color: oklch(36.0% 0.101 275.1);
Tailwind
colors: {
  custom: {
    50: '#6e6c9a',
    500: '#2f3671',
    950: '#000000',
  },
}
SCSS
$custom: #2f3671;
$custom-light: #6e6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3671",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 113
  },
  "hsl": {
    "h": 233.636,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36013,
    "c": 0.10079,
    "h": 275.1
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#2F3671
secondary
#A29B5A
accent
#C457D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2F3671

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

Preview Lab → · Contrast checker → · Palette generator →

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