#2F316B#2F316B

#2F316B is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.099 H 278.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2F316B
RGBrgb(47, 49, 107)
HSLhsl(238, 39%, 30%)
HSVhsv(238, 56%, 42%)
CMYKcmyk(56.1%, 54.2%, 0%, 58%)
CIE-LABlab(23.21, 17.38, -34.28)
CIE-LCHlch(23.21, 38.43, 296.88°)
OKLaboklab(34.49% 0.0144 -0.0979)
OKLCHoklch(34.49% 0.099 278.4)
XYZxyz(4.9236, 3.8622, 14.3931)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F316B #6B692F
analogous
#2F4F6B #2F316B #4B2F6B
triadic
#2F316B #6B2F31 #316B2F
tetradic
#2F316B #6B2F4F #6B692F #2F6B4B
square
#2F316B #6B2F4F #6B692F #2F6B4B
split-complementary
#2F316B #6B4B2F #4F6B2F
monochromatic
#0A0A16 #1C1E40 #2F316B #424496 #5D60B8

Accessibility & contrast

On white

11.85
#2F316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F316B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F316B
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F316B#FFFFFF#000000##FFFFFF
##2F316B1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133A6D
Deuteranopia (green-blind)
#0B356A
Tritanopia (blue-blind)
#143E49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f316b;
/* rgb */ color: rgb(47, 49, 107);
/* oklch */ color: oklch(34.5% 0.099 278.4);
Tailwind
colors: {
  custom: {
    50: '#6d6996',
    500: '#2f316b',
    950: '#000000',
  },
}
SCSS
$custom: #2f316b;
$custom-light: #6d6996;
$custom-dark: #000000;
JSON
{
  "hex": "#2f316b",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 238,
    "s": 38.961,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34485,
    "c": 0.09891,
    "h": 278.4
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#2F316B
secondary
#9C9A59
accent
#CB59CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2F316B

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

Preview Lab → · Contrast checker → · Palette generator →

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