#2F3166#2F3166

#2F3166 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.091 H 278.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2F3166
RGBrgb(47, 49, 102)
HSLhsl(238, 37%, 29%)
HSVhsv(238, 54%, 40%)
CMYKcmyk(53.9%, 52%, 0%, 60%)
CIE-LABlab(22.86, 15.60, -31.60)
CIE-LCHlch(22.86, 35.24, 296.27°)
OKLaboklab(34.11% 0.0139 -0.09)
OKLCHoklch(34.11% 0.091 278.8)
XYZxyz(4.6681, 3.7600, 13.0476)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3166 #66642F
analogous
#2F4D66 #2F3166 #492F66
triadic
#2F3166 #662F31 #31662F
tetradic
#2F3166 #662F4D #66642F #2F6649
square
#2F3166 #662F4D #66642F #2F6649
split-complementary
#2F3166 #66492F #4D662F
monochromatic
#0A0A15 #1C1D3C #2F3166 #424590 #5C5FB4

Accessibility & contrast

On white

11.99
#2F3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3166
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3166#FFFFFF#000000##FFFFFF
##2F31661.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193968
Deuteranopia (green-blind)
#133465
Tritanopia (blue-blind)
#193D46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f3166;
/* rgb */ color: rgb(47, 49, 102);
/* oklch */ color: oklch(34.1% 0.091 278.8);
Tailwind
colors: {
  custom: {
    50: '#6c6992',
    500: '#2f3166',
    950: '#000000',
  },
}
SCSS
$custom: #2f3166;
$custom-light: #6c6992;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3166",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 237.818,
    "s": 36.913,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3411,
    "c": 0.09106,
    "h": 278.8
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#2F3166
secondary
#989559
accent
#C95BCD
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2F3166

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

Preview Lab → · Contrast checker → · Palette generator →

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