#2F317F#2F317F

#2F317F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.129 H 276.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2F317F
RGBrgb(47, 49, 127)
HSLhsl(239, 46%, 34%)
HSVhsv(239, 63%, 50%)
CMYKcmyk(63%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.74, 24.57, -44.55)
CIE-LCHlch(24.74, 50.88, 298.88°)
OKLaboklab(36.11% 0.015 -0.1281)
OKLCHoklch(36.11% 0.129 276.7)
XYZxyz(6.1001, 4.3328, 20.5894)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F317F #7F7D2F
analogous
#2F597F #2F317F #552F7F
triadic
#2F317F #7F2F31 #317F2F
tetradic
#2F317F #7F2F59 #7F7D2F #2F7F55
square
#2F317F #7F2F59 #7F7D2F #2F7F55
split-complementary
#2F317F #7F552F #597F2F
monochromatic
#0E0F26 #1E2052 #2F317F #4042AC #6366C5

Accessibility & contrast

On white

11.25
#2F317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F317F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F317F#FFFFFF#000000##FFFFFF
##2F317F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f317f;
/* rgb */ color: rgb(47, 49, 127);
/* oklch */ color: oklch(36.1% 0.129 276.7);
Tailwind
colors: {
  custom: {
    50: '#7169a5',
    500: '#2f317f',
    950: '#000000',
  },
}
SCSS
$custom: #2f317f;
$custom-light: #7169a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f317f",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 238.5,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36113,
    "c": 0.12896,
    "h": 276.7
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#2F317F
secondary
#ACAA5E
accent
#D252D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F317F

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

Preview Lab → · Contrast checker → · Palette generator →

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