#2F317E#2F317E

#2F317E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.128 H 276.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2F317E
RGBrgb(47, 49, 126)
HSLhsl(238, 46%, 34%)
HSVhsv(238, 63%, 49%)
CMYKcmyk(62.7%, 61.1%, 0%, 50.6%)
CIE-LABlab(24.66, 24.21, -44.05)
CIE-LCHlch(24.66, 50.27, 298.79°)
OKLaboklab(36.03% 0.015 -0.1266)
OKLCHoklch(36.03% 0.128 276.8)
XYZxyz(6.0353, 4.3069, 20.2479)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F317E #7E7C2F
analogous
#2F597E #2F317E #552F7E
triadic
#2F317E #7E2F31 #317E2F
tetradic
#2F317E #7E2F59 #7E7C2F #2F7E55
square
#2F317E #7E2F59 #7E7C2F #2F7E55
split-complementary
#2F317E #7E552F #597E2F
monochromatic
#0E0E25 #1E2051 #2F317E #4042AB #6365C5

Accessibility & contrast

On white

11.28
#2F317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F317E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F317E#FFFFFF#000000##FFFFFF
##2F317E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f317e;
/* rgb */ color: rgb(47, 49, 126);
/* oklch */ color: oklch(36.0% 0.128 276.8);
Tailwind
colors: {
  custom: {
    50: '#7069a4',
    500: '#2f317e',
    950: '#000000',
  },
}
SCSS
$custom: #2f317e;
$custom-light: #7069a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f317e",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 238.481,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.1275,
    "h": 276.8
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#2F317E
secondary
#ACAA5D
accent
#D252D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F317E

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

Preview Lab → · Contrast checker → · Palette generator →

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