#2F3D8D#2F3D8D

#2F3D8D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.133 H 271.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2F3D8D
RGBrgb(47, 61, 141)
HSLhsl(231, 50%, 37%)
HSVhsv(231, 67%, 55%)
CMYKcmyk(66.7%, 56.7%, 0%, 44.7%)
CIE-LABlab(29.07, 21.60, -46.26)
CIE-LCHlch(29.07, 51.05, 295.03°)
OKLaboklab(39.68% 0.0035 -0.133)
OKLCHoklch(39.68% 0.133 271.5)
XYZxyz(7.6471, 5.8642, 25.9231)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D8D #8D7F2F
analogous
#2F6C8D #2F3D8D #502F8D
triadic
#2F3D8D #8D2F3D #3D8D2F
tetradic
#2F3D8D #8D2F6C #8D7F2F #2F8D50
square
#2F3D8D #8D2F6C #8D7F2F #2F8D50
split-complementary
#2F3D8D #8D502F #6C8D2F
monochromatic
#101531 #20295F #2F3D8D #3E51BB #6978CD

Accessibility & contrast

On white

9.66
#2F3D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F3D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D8D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D8D#FFFFFF#000000##FFFFFF
##2F3D8D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3d8d;
/* rgb */ color: rgb(47, 61, 141);
/* oklch */ color: oklch(39.7% 0.133 271.5);
Tailwind
colors: {
  custom: {
    50: '#7372af',
    500: '#2f3d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d8d;
$custom-light: #7372af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d8d",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 231.064,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39681,
    "c": 0.13301,
    "h": 271.5
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#2F3D8D
secondary
#B4A864
accent
#C54EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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