#2F3D79#2F3D79

#2F3D79 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.1% C 0.103 H 270.9°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2F3D79
RGBrgb(47, 61, 121)
HSLhsl(229, 44%, 33%)
HSVhsv(229, 61%, 47%)
CMYKcmyk(61.2%, 49.6%, 0%, 52.5%)
CIE-LABlab(27.63, 14.18, -36.10)
CIE-LCHlch(27.63, 38.79, 291.45°)
OKLaboklab(38.14% 0.0017 -0.1031)
OKLCHoklch(38.14% 0.103 270.9)
XYZxyz(6.2911, 5.3218, 18.7811)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D79 #796B2F
analogous
#2F6279 #2F3D79 #462F79
triadic
#2F3D79 #792F3D #3D792F
tetradic
#2F3D79 #792F62 #796B2F #2F7946
square
#2F3D79 #792F62 #796B2F #2F7946
split-complementary
#2F3D79 #79462F #62792F
monochromatic
#0D1121 #1E274D #2F3D79 #4053A5 #6173C2

Accessibility & contrast

On white

10.17
#2F3D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F3D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D79
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D79#FFFFFF#000000##FFFFFF
##2F3D791.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20457B
Deuteranopia (green-blind)
#143E78
Tritanopia (blue-blind)
#004B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3d79;
/* rgb */ color: rgb(47, 61, 121);
/* oklch */ color: oklch(38.1% 0.103 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f72a0',
    500: '#2f3d79',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d79;
$custom-light: #6f72a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d79",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 121
  },
  "hsl": {
    "h": 228.649,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3814,
    "c": 0.10311,
    "h": 270.9
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#2F3D79
secondary
#A89A5B
accent
#BC54D4
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2F3D79

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

Preview Lab → · Contrast checker → · Palette generator →

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