#2F3879#2F3879

#2F3879 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.110 H 273.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2F3879
RGBrgb(47, 56, 121)
HSLhsl(233, 44%, 33%)
HSVhsv(233, 61%, 47%)
CMYKcmyk(61.2%, 53.7%, 0%, 52.5%)
CIE-LABlab(26.19, 17.62, -38.41)
CIE-LCHlch(26.19, 42.26, 294.64°)
OKLaboklab(37.05% 0.0074 -0.11)
OKLCHoklch(37.05% 0.11 273.8)
XYZxyz(6.0365, 4.8127, 18.6963)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3879 #79702F
analogous
#2F5D79 #2F3879 #4B2F79
triadic
#2F3879 #792F38 #38792F
tetradic
#2F3879 #792F5D #79702F #2F794B
square
#2F3879 #792F5D #79702F #2F794B
split-complementary
#2F3879 #794B2F #5D792F
monochromatic
#0D0F21 #1E244D #2F3879 #404CA5 #616DC2

Accessibility & contrast

On white

10.70
#2F3879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F3879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3879
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3879#FFFFFF#000000##FFFFFF
##2F38791.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14417B
Deuteranopia (green-blind)
#033B78
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f3879;
/* rgb */ color: rgb(47, 56, 121);
/* oklch */ color: oklch(37.1% 0.110 273.8);
Tailwind
colors: {
  custom: {
    50: '#6f6ea0',
    500: '#2f3879',
    950: '#000000',
  },
}
SCSS
$custom: #2f3879;
$custom-light: #6f6ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3879",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 121
  },
  "hsl": {
    "h": 232.703,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37051,
    "c": 0.11021,
    "h": 273.8
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#2F3879
secondary
#A89F5B
accent
#C454D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2F3879

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

Preview Lab → · Contrast checker → · Palette generator →

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