#2F377F#2F377F

#2F377F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.121 H 274.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2F377F
RGBrgb(47, 55, 127)
HSLhsl(234, 46%, 34%)
HSVhsv(234, 63%, 50%)
CMYKcmyk(63%, 56.7%, 0%, 50.2%)
CIE-LABlab(26.36, 20.50, -41.93)
CIE-LCHlch(26.36, 46.68, 296.06°)
OKLaboklab(37.31% 0.0089 -0.1203)
OKLCHoklch(37.31% 0.121 274.2)
XYZxyz(6.3680, 4.8685, 20.6787)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F377F #7F772F
analogous
#2F5F7F #2F377F #4F2F7F
triadic
#2F377F #7F2F37 #377F2F
tetradic
#2F377F #7F2F5F #7F772F #2F7F4F
square
#2F377F #7F2F5F #7F772F #2F7F4F
split-complementary
#2F377F #7F4F2F #5F7F2F
monochromatic
#0E1026 #1E2452 #2F377F #404AAC #636DC5

Accessibility & contrast

On white

10.64
#2F377F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F377F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F377F
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F377F#FFFFFF#000000##FFFFFF
##2F377F1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044281
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f377f;
/* rgb */ color: rgb(47, 55, 127);
/* oklch */ color: oklch(37.3% 0.121 274.2);
Tailwind
colors: {
  custom: {
    50: '#706da5',
    500: '#2f377f',
    950: '#000000',
  },
}
SCSS
$custom: #2f377f;
$custom-light: #706da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f377f",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 127
  },
  "hsl": {
    "h": 234,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37314,
    "c": 0.12065,
    "h": 274.2
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#2F377F
secondary
#ACA45E
accent
#C852D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F377F

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

Preview Lab → · Contrast checker → · Palette generator →

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