#2F3D78#2F3D78

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

Color values

HEX#2F3D78
RGBrgb(47, 61, 120)
HSLhsl(228, 44%, 33%)
HSVhsv(228, 61%, 47%)
CMYKcmyk(60.8%, 49.2%, 0%, 52.9%)
CIE-LABlab(27.57, 13.82, -35.58)
CIE-LCHlch(27.57, 38.17, 291.22°)
OKLaboklab(38.07% 0.0015 -0.1016)
OKLCHoklch(38.07% 0.102 270.9)
XYZxyz(6.2301, 5.2974, 18.4599)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D78 #786A2F
analogous
#2F6278 #2F3D78 #452F78
triadic
#2F3D78 #782F3D #3D782F
tetradic
#2F3D78 #782F62 #786A2F #2F7845
square
#2F3D78 #782F62 #786A2F #2F7845
split-complementary
#2F3D78 #78452F #62782F
monochromatic
#0D1020 #1E274C #2F3D78 #4053A4 #6073C1

Accessibility & contrast

On white

10.20
#2F3D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3D78
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D78#FFFFFF#000000##FFFFFF
##2F3D781.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21447A
Deuteranopia (green-blind)
#163E77
Tritanopia (blue-blind)
#004A54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3d78;
/* rgb */ color: rgb(47, 61, 120);
/* oklch */ color: oklch(38.1% 0.102 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e729f',
    500: '#2f3d78',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d78;
$custom-light: #6e729f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d78",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 120
  },
  "hsl": {
    "h": 228.493,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38067,
    "c": 0.10157,
    "h": 270.9
  },
  "luminance": 0.05298
}

Semantic roles & 50–950 ramp

primary
#2F3D78
secondary
#A8995B
accent
#BB54D3
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #2F3D78

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

Preview Lab → · Contrast checker → · Palette generator →

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