#2F3176#2F3176

#2F3176 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.4% C 0.116 H 277.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2F3176
RGBrgb(47, 49, 118)
HSLhsl(238, 43%, 32%)
HSVhsv(238, 60%, 46%)
CMYKcmyk(60.2%, 58.5%, 0%, 53.7%)
CIE-LABlab(24.03, 21.33, -40.01)
CIE-LCHlch(24.03, 45.34, 298.06°)
OKLaboklab(35.36% 0.015 -0.1147)
OKLCHoklch(35.36% 0.116 277.4)
XYZxyz(5.5396, 4.1086, 17.6372)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3176 #76742F
analogous
#2F5476 #2F3176 #512F76
triadic
#2F3176 #762F31 #31762F
tetradic
#2F3176 #762F54 #76742F #2F7651
square
#2F3176 #762F54 #76742F #2F7651
split-complementary
#2F3176 #76512F #54762F
monochromatic
#0C0D1E #1E1F4A #2F3176 #4043A2 #6063C0

Accessibility & contrast

On white

11.53
#2F3176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F3176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3176
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3176#FFFFFF#000000##FFFFFF
##2F31761.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#03414E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f3176;
/* rgb */ color: rgb(47, 49, 118);
/* oklch */ color: oklch(35.4% 0.116 277.4);
Tailwind
colors: {
  custom: {
    50: '#6f699e',
    500: '#2f3176',
    950: '#000000',
  },
}
SCSS
$custom: #2f3176;
$custom-light: #6f699e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3176",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 118
  },
  "hsl": {
    "h": 238.31,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35356,
    "c": 0.11571,
    "h": 277.4
  },
  "luminance": 0.04109
}

Semantic roles & 50–950 ramp

primary
#2F3176
secondary
#A7A45A
accent
#CF55D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3176

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

Preview Lab → · Contrast checker → · Palette generator →

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