#2F3B71#2F3B71

#2F3B71 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.1% C 0.094 H 271.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F3B71
RGBrgb(47, 59, 113)
HSLhsl(229, 41%, 31%)
HSVhsv(229, 58%, 44%)
CMYKcmyk(58.4%, 47.8%, 0%, 55.7%)
CIE-LABlab(26.52, 12.63, -32.82)
CIE-LCHlch(26.52, 35.17, 291.04°)
OKLaboklab(37.12% 0.0028 -0.0935)
OKLCHoklch(37.12% 0.094 271.7)
XYZxyz(5.7159, 4.9241, 16.2688)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B71 #71652F
analogous
#2F5C71 #2F3B71 #442F71
triadic
#2F3B71 #712F3B #3B712F
tetradic
#2F3B71 #712F5C #71652F #2F7144
square
#2F3B71 #712F5C #71652F #2F7144
split-complementary
#2F3B71 #71442F #5C712F
monochromatic
#0B0E1B #1D2446 #2F3B71 #41529C #5E6FBC

Accessibility & contrast

On white

10.58
#2F3B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F3B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3B71
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B71#FFFFFF#000000##FFFFFF
##2F3B711.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#1A3C70
Tritanopia (blue-blind)
#094750
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3b71;
/* rgb */ color: rgb(47, 59, 113);
/* oklch */ color: oklch(37.1% 0.094 271.7);
Tailwind
colors: {
  custom: {
    50: '#6d709a',
    500: '#2f3b71',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b71;
$custom-light: #6d709a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b71",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 113
  },
  "hsl": {
    "h": 229.091,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3712,
    "c": 0.09352,
    "h": 271.7
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#2F3B71
secondary
#A2955A
accent
#BB57D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2F3B71

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

Preview Lab → · Contrast checker → · Palette generator →

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