#2F3F83#2F3F83

#2F3F83 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.116 H 270.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2F3F83
RGBrgb(47, 63, 131)
HSLhsl(229, 47%, 35%)
HSVhsv(229, 64%, 51%)
CMYKcmyk(64.1%, 51.9%, 0%, 48.6%)
CIE-LABlab(28.90, 16.52, -40.34)
CIE-LCHlch(28.90, 43.59, 292.27°)
OKLaboklab(39.32% 0.0007 -0.1155)
OKLCHoklch(39.32% 0.116 270.3)
XYZxyz(7.0452, 5.7974, 22.2161)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F83 #83732F
analogous
#2F6983 #2F3F83 #492F83
triadic
#2F3F83 #832F3F #3F832F
tetradic
#2F3F83 #832F69 #83732F #2F8349
square
#2F3F83 #832F69 #83732F #2F8349
split-complementary
#2F3F83 #83492F #69832F
monochromatic
#0F1429 #1F2956 #2F3F83 #3F55B0 #6578C8

Accessibility & contrast

On white

9.72
#2F3F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F3F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F83
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F83#FFFFFF#000000##FFFFFF
##2F3F831.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4885
Deuteranopia (green-blind)
#054182
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3f83;
/* rgb */ color: rgb(47, 63, 131);
/* oklch */ color: oklch(39.3% 0.116 270.3);
Tailwind
colors: {
  custom: {
    50: '#7173a7',
    500: '#2f3f83',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f83;
$custom-light: #7173a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f83",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 131
  },
  "hsl": {
    "h": 228.571,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39319,
    "c": 0.11552,
    "h": 270.3
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#2F3F83
secondary
#AF9F5F
accent
#BD51D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F3F83

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

Preview Lab → · Contrast checker → · Palette generator →

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