#2F377B#2F377B

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

Color values

HEX#2F377B
RGBrgb(47, 55, 123)
HSLhsl(234, 45%, 33%)
HSVhsv(234, 62%, 48%)
CMYKcmyk(61.8%, 55.3%, 0%, 51.8%)
CIE-LABlab(26.06, 19.04, -39.90)
CIE-LCHlch(26.06, 44.21, 295.51°)
OKLaboklab(36.99% 0.0086 -0.1143)
OKLCHoklch(36.99% 0.115 274.3)
XYZxyz(6.1125, 4.7663, 19.3329)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F377B #7B732F
analogous
#2F5D7B #2F377B #4D2F7B
triadic
#2F377B #7B2F37 #377B2F
tetradic
#2F377B #7B2F5D #7B732F #2F7B4D
square
#2F377B #7B2F5D #7B732F #2F7B4D
split-complementary
#2F377B #7B4D2F #5D7B2F
monochromatic
#0D0F22 #1E234F #2F377B #404BA7 #626CC3

Accessibility & contrast

On white

10.75
#2F377B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F377B
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F377B#FFFFFF#000000##FFFFFF
##2F377B1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D417D
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f377b;
/* rgb */ color: rgb(47, 55, 123);
/* oklch */ color: oklch(37.0% 0.115 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f6da2',
    500: '#2f377b',
    950: '#000000',
  },
}
SCSS
$custom: #2f377b;
$custom-light: #6f6da2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f377b",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 123
  },
  "hsl": {
    "h": 233.684,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36995,
    "c": 0.11466,
    "h": 274.3
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#2F377B
secondary
#AAA25C
accent
#C753D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F377B

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

Preview Lab → · Contrast checker → · Palette generator →

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