#2F327E#2F327E

#2F327E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.126 H 276.4°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2F327E
RGBrgb(47, 50, 126)
HSLhsl(238, 46%, 34%)
HSVhsv(238, 63%, 49%)
CMYKcmyk(62.7%, 60.3%, 0%, 50.6%)
CIE-LABlab(24.93, 23.54, -43.62)
CIE-LCHlch(24.93, 49.57, 298.35°)
OKLaboklab(36.22% 0.014 -0.1253)
OKLCHoklch(36.22% 0.126 276.4)
XYZxyz(6.0776, 4.3914, 20.2620)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F327E #7E7B2F
analogous
#2F5A7E #2F327E #542F7E
triadic
#2F327E #7E2F32 #327E2F
tetradic
#2F327E #7E2F5A #7E7B2F #2F7E54
square
#2F327E #7E2F5A #7E7B2F #2F7E54
split-complementary
#2F327E #7E542F #5A7E2F
monochromatic
#0E0F25 #1E2051 #2F327E #4044AB #6366C5

Accessibility & contrast

On white

11.18
#2F327E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F327E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F327E
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F327E#FFFFFF#000000##FFFFFF
##2F327E1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f327e;
/* rgb */ color: rgb(47, 50, 126);
/* oklch */ color: oklch(36.2% 0.126 276.4);
Tailwind
colors: {
  custom: {
    50: '#706aa4',
    500: '#2f327e',
    950: '#000000',
  },
}
SCSS
$custom: #2f327e;
$custom-light: #706aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f327e",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 126
  },
  "hsl": {
    "h": 237.722,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36223,
    "c": 0.12612,
    "h": 276.4
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#2F327E
secondary
#ACA95D
accent
#D052D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F327E

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

Preview Lab → · Contrast checker → · Palette generator →

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