#2F378E#2F378E

#2F378E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.142 H 273.7°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2F378E
RGBrgb(47, 55, 142)
HSLhsl(235, 50%, 37%)
HSVhsv(235, 67%, 56%)
CMYKcmyk(66.9%, 61.3%, 0%, 44.3%)
CIE-LABlab(27.54, 26.00, -49.35)
CIE-LCHlch(27.54, 55.78, 297.78°)
OKLaboklab(38.57% 0.0091 -0.1421)
OKLCHoklch(38.57% 0.142 273.7)
XYZxyz(7.4193, 5.2891, 26.2158)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F378E #8E862F
analogous
#2F678E #2F378E #562F8E
triadic
#2F378E #8E2F37 #378E2F
tetradic
#2F378E #8E2F67 #8E862F #2F8E56
square
#2F378E #8E2F67 #8E862F #2F8E56
split-complementary
#2F378E #8E562F #678E2F
monochromatic
#111332 #202560 #2F378E #3E49BC #6A72CE

Accessibility & contrast

On white

10.20
#2F378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F378E
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F378E#FFFFFF#000000##FFFFFF
##2F378E1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f378e;
/* rgb */ color: rgb(47, 55, 142);
/* oklch */ color: oklch(38.6% 0.142 273.7);
Tailwind
colors: {
  custom: {
    50: '#736db0',
    500: '#2f378e',
    950: '#000000',
  },
}
SCSS
$custom: #2f378e;
$custom-light: #736db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f378e",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 234.947,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.14241,
    "h": 273.7
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#2F378E
secondary
#B5AE64
accent
#CE4EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F378E

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

Preview Lab → · Contrast checker → · Palette generator →

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