#2F3E83#2F3E83

#2F3E83 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.1% C 0.117 H 270.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2F3E83
RGBrgb(47, 62, 131)
HSLhsl(229, 47%, 35%)
HSVhsv(229, 64%, 51%)
CMYKcmyk(64.1%, 52.7%, 0%, 48.6%)
CIE-LABlab(28.61, 17.20, -40.80)
CIE-LCHlch(28.61, 44.27, 292.86°)
OKLaboklab(39.1% 0.0018 -0.1169)
OKLCHoklch(39.1% 0.117 270.9)
XYZxyz(6.9903, 5.6877, 22.1978)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E83 #83742F
analogous
#2F6883 #2F3E83 #4A2F83
triadic
#2F3E83 #832F3E #3E832F
tetradic
#2F3E83 #832F68 #83742F #2F834A
square
#2F3E83 #832F68 #83742F #2F834A
split-complementary
#2F3E83 #834A2F #68832F
monochromatic
#0F1329 #1F2956 #2F3E83 #3F53B0 #6576C8

Accessibility & contrast

On white

9.82
#2F3E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F3E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E83
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E83#FFFFFF#000000##FFFFFF
##2F3E831.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174785
Deuteranopia (green-blind)
#014082
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3e83;
/* rgb */ color: rgb(47, 62, 131);
/* oklch */ color: oklch(39.1% 0.117 270.9);
Tailwind
colors: {
  custom: {
    50: '#7173a7',
    500: '#2f3e83',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e83;
$custom-light: #7173a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e83",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 131
  },
  "hsl": {
    "h": 229.286,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39103,
    "c": 0.11689,
    "h": 270.9
  },
  "luminance": 0.05688
}

Semantic roles & 50–950 ramp

primary
#2F3E83
secondary
#AFA05F
accent
#BF51D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F3E83

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

Preview Lab → · Contrast checker → · Palette generator →

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