#2F3E81#2F3E81

#2F3E81 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 39.0% C 0.114 H 270.8°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2F3E81
RGBrgb(47, 62, 129)
HSLhsl(229, 47%, 35%)
HSVhsv(229, 64%, 51%)
CMYKcmyk(63.6%, 51.9%, 0%, 49.4%)
CIE-LABlab(28.47, 16.46, -39.77)
CIE-LCHlch(28.47, 43.05, 292.48°)
OKLaboklab(38.95% 0.0016 -0.1139)
OKLCHoklch(38.95% 0.114 270.8)
XYZxyz(6.8560, 5.6340, 21.4908)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E81 #81722F
analogous
#2F6781 #2F3E81 #492F81
triadic
#2F3E81 #812F3E #3E812F
tetradic
#2F3E81 #812F67 #81722F #2F8149
square
#2F3E81 #812F67 #81722F #2F8149
split-complementary
#2F3E81 #81492F #67812F
monochromatic
#0E1327 #1F2854 #2F3E81 #3F54AE #6476C6

Accessibility & contrast

On white

9.87
#2F3E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F3E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E81
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E81#FFFFFF#000000##FFFFFF
##2F3E811.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4783
Deuteranopia (green-blind)
#064080
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3e81;
/* rgb */ color: rgb(47, 62, 129);
/* oklch */ color: oklch(39.0% 0.114 270.8);
Tailwind
colors: {
  custom: {
    50: '#7073a6',
    500: '#2f3e81',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e81;
$custom-light: #7073a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e81",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 129
  },
  "hsl": {
    "h": 229.024,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38951,
    "c": 0.11389,
    "h": 270.8
  },
  "luminance": 0.05635
}

Semantic roles & 50–950 ramp

primary
#2F3E81
secondary
#AD9F5E
accent
#BE52D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F3E81

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

Preview Lab → · Contrast checker → · Palette generator →

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