#2F327D#2F327D

#2F327D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.125 H 276.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2F327D
RGBrgb(47, 50, 125)
HSLhsl(238, 45%, 34%)
HSVhsv(238, 62%, 49%)
CMYKcmyk(62.4%, 60%, 0%, 51%)
CIE-LABlab(24.85, 23.18, -43.12)
CIE-LCHlch(24.85, 48.95, 298.26°)
OKLaboklab(36.14% 0.014 -0.1239)
OKLCHoklch(36.14% 0.125 276.5)
XYZxyz(6.0134, 4.3658, 19.9239)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F327D #7D7A2F
analogous
#2F597D #2F327D #532F7D
triadic
#2F327D #7D2F32 #327D2F
tetradic
#2F327D #7D2F59 #7D7A2F #2F7D53
square
#2F327D #7D2F59 #7D7A2F #2F7D53
split-complementary
#2F327D #7D532F #597D2F
monochromatic
#0E0E24 #1E2051 #2F327D #4044A9 #6266C4

Accessibility & contrast

On white

11.21
#2F327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F327D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F327D#FFFFFF#000000##FFFFFF
##2F327D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f327d;
/* rgb */ color: rgb(47, 50, 125);
/* oklch */ color: oklch(36.1% 0.125 276.5);
Tailwind
colors: {
  custom: {
    50: '#706aa3',
    500: '#2f327d',
    950: '#000000',
  },
}
SCSS
$custom: #2f327d;
$custom-light: #706aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f327d",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 237.692,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36138,
    "c": 0.12466,
    "h": 276.5
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#2F327D
secondary
#ABA85D
accent
#D053D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F327D

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

Preview Lab → · Contrast checker → · Palette generator →

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