#2F377D#2F377D

#2F377D is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.2% C 0.118 H 274.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2F377D
RGBrgb(47, 55, 125)
HSLhsl(234, 45%, 34%)
HSVhsv(234, 62%, 49%)
CMYKcmyk(62.4%, 56%, 0%, 51%)
CIE-LABlab(26.21, 19.77, -40.92)
CIE-LCHlch(26.21, 45.44, 295.79°)
OKLaboklab(37.15% 0.0088 -0.1173)
OKLCHoklch(37.15% 0.118 274.3)
XYZxyz(6.2389, 4.8169, 19.9990)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F377D #7D752F
analogous
#2F5E7D #2F377D #4E2F7D
triadic
#2F377D #7D2F37 #377D2F
tetradic
#2F377D #7D2F5E #7D752F #2F7D4E
square
#2F377D #7D2F5E #7D752F #2F7D4E
split-complementary
#2F377D #7D4E2F #5E7D2F
monochromatic
#0E1024 #1E2351 #2F377D #404BA9 #626CC4

Accessibility & contrast

On white

10.70
#2F377D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F377D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F377D
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F377D#FFFFFF#000000##FFFFFF
##2F377D1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08417F
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f377d;
/* rgb */ color: rgb(47, 55, 125);
/* oklch */ color: oklch(37.2% 0.118 274.3);
Tailwind
colors: {
  custom: {
    50: '#706da3',
    500: '#2f377d',
    950: '#000000',
  },
}
SCSS
$custom: #2f377d;
$custom-light: #706da3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f377d",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 125
  },
  "hsl": {
    "h": 233.846,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.11766,
    "h": 274.3
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

primary
#2F377D
secondary
#ABA35D
accent
#C853D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F377D

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

Preview Lab → · Contrast checker → · Palette generator →

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