#2F378C#2F378C

#2F378C is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.140 H 273.7°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2F378C
RGBrgb(47, 55, 140)
HSLhsl(235, 50%, 37%)
HSVhsv(235, 66%, 55%)
CMYKcmyk(66.4%, 60.7%, 0%, 45.1%)
CIE-LABlab(27.38, 25.27, -48.38)
CIE-LCHlch(27.38, 54.58, 297.58°)
OKLaboklab(38.4% 0.0091 -0.1393)
OKLCHoklch(38.4% 0.14 273.7)
XYZxyz(7.2705, 5.2295, 25.4321)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F378C #8C842F
analogous
#2F668C #2F378C #562F8C
triadic
#2F378C #8C2F37 #378C2F
tetradic
#2F378C #8C2F66 #8C842F #2F8C56
square
#2F378C #8C2F66 #8C842F #2F8C56
split-complementary
#2F378C #8C562F #668C2F
monochromatic
#101330 #20255E #2F378C #3E49BA #6971CD

Accessibility & contrast

On white

10.26
#2F378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F378C
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F378C#FFFFFF#000000##FFFFFF
##2F378C1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f378c;
/* rgb */ color: rgb(47, 55, 140);
/* oklch */ color: oklch(38.4% 0.140 273.7);
Tailwind
colors: {
  custom: {
    50: '#736dae',
    500: '#2f378c',
    950: '#000000',
  },
}
SCSS
$custom: #2f378c;
$custom-light: #736dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f378c",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 234.839,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38398,
    "c": 0.13958,
    "h": 273.7
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#2F378C
secondary
#B4AD63
accent
#CD4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F378C

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

Preview Lab → · Contrast checker → · Palette generator →

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