#2F377A#2F377A

#2F377A is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.9% C 0.113 H 274.3°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2F377A
RGBrgb(47, 55, 122)
HSLhsl(234, 44%, 33%)
HSVhsv(234, 61%, 48%)
CMYKcmyk(61.5%, 54.9%, 0%, 52.2%)
CIE-LABlab(25.98, 18.67, -39.38)
CIE-LCHlch(25.98, 43.59, 295.36°)
OKLaboklab(36.92% 0.0086 -0.1128)
OKLCHoklch(36.92% 0.113 274.3)
XYZxyz(6.0502, 4.7414, 19.0049)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F377A #7A722F
analogous
#2F5C7A #2F377A #4C2F7A
triadic
#2F377A #7A2F37 #377A2F
tetradic
#2F377A #7A2F5C #7A722F #2F7A4C
square
#2F377A #7A2F5C #7A722F #2F7A4C
split-complementary
#2F377A #7A4C2F #5C7A2F
monochromatic
#0D0F22 #1E234E #2F377A #404BA6 #616CC2

Accessibility & contrast

On white

10.78
#2F377A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F377A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F377A
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F377A#FFFFFF#000000##FFFFFF
##2F377A1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F417C
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f377a;
/* rgb */ color: rgb(47, 55, 122);
/* oklch */ color: oklch(36.9% 0.113 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f6da1',
    500: '#2f377a',
    950: '#000000',
  },
}
SCSS
$custom: #2f377a;
$custom-light: #6f6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f377a",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 122
  },
  "hsl": {
    "h": 233.6,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36916,
    "c": 0.11314,
    "h": 274.3
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#2F377A
secondary
#A9A15C
accent
#C654D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F377A

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

Preview Lab → · Contrast checker → · Palette generator →

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