#2F3D77#2F3D77

#2F3D77 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.0% C 0.100 H 270.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2F3D77
RGBrgb(47, 61, 119)
HSLhsl(228, 43%, 33%)
HSVhsv(228, 61%, 47%)
CMYKcmyk(60.5%, 48.7%, 0%, 53.3%)
CIE-LABlab(27.50, 13.45, -35.05)
CIE-LCHlch(27.50, 37.55, 290.99°)
OKLaboklab(38% 0.0014 -0.1)
OKLCHoklch(38% 0.1 270.8)
XYZxyz(6.1697, 5.2733, 18.1419)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D77 #77692F
analogous
#2F6177 #2F3D77 #452F77
triadic
#2F3D77 #772F3D #3D772F
tetradic
#2F3D77 #772F61 #77692F #2F7745
square
#2F3D77 #772F61 #77692F #2F7745
split-complementary
#2F3D77 #77452F #61772F
monochromatic
#0C101F #1E274B #2F3D77 #4053A3 #6073C0

Accessibility & contrast

On white

10.22
#2F3D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F3D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D77
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D77#FFFFFF#000000##FFFFFF
##2F3D771.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224479
Deuteranopia (green-blind)
#173E76
Tritanopia (blue-blind)
#004A54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3d77;
/* rgb */ color: rgb(47, 61, 119);
/* oklch */ color: oklch(38.0% 0.100 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e729f',
    500: '#2f3d77',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d77;
$custom-light: #6e729f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d77",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 119
  },
  "hsl": {
    "h": 228.333,
    "s": 43.373,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37996,
    "c": 0.10002,
    "h": 270.8
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#2F3D77
secondary
#A7985B
accent
#BB55D3
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #2F3D77

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

Preview Lab → · Contrast checker → · Palette generator →

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