#2F3376#2F3376

#2F3376 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.113 H 276.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2F3376
RGBrgb(47, 51, 118)
HSLhsl(237, 43%, 32%)
HSVhsv(237, 60%, 46%)
CMYKcmyk(60.2%, 56.8%, 0%, 53.7%)
CIE-LABlab(24.57, 19.96, -39.13)
CIE-LCHlch(24.57, 43.92, 297.03°)
OKLaboklab(35.77% 0.0128 -0.1121)
OKLCHoklch(35.77% 0.113 276.5)
XYZxyz(5.6251, 4.2796, 17.6657)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3376 #76722F
analogous
#2F5676 #2F3376 #4F2F76
triadic
#2F3376 #762F33 #33762F
tetradic
#2F3376 #762F56 #76722F #2F764F
square
#2F3376 #762F56 #76722F #2F764F
split-complementary
#2F3376 #764F2F #56762F
monochromatic
#0C0D1E #1E204A #2F3376 #4046A2 #6065C0

Accessibility & contrast

On white

11.31
#2F3376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F3376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3376
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3376#FFFFFF#000000##FFFFFF
##2F33761.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073D78
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#03434F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f3376;
/* rgb */ color: rgb(47, 51, 118);
/* oklch */ color: oklch(35.8% 0.113 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f6a9e',
    500: '#2f3376',
    950: '#000000',
  },
}
SCSS
$custom: #2f3376;
$custom-light: #6f6a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3376",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 118
  },
  "hsl": {
    "h": 236.62,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35765,
    "c": 0.11283,
    "h": 276.5
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#2F3376
secondary
#A7A25A
accent
#CC55D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3376

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

Preview Lab → · Contrast checker → · Palette generator →

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