#2F378D#2F378D

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

Color values

HEX#2F378D
RGBrgb(47, 55, 141)
HSLhsl(235, 50%, 37%)
HSVhsv(235, 67%, 55%)
CMYKcmyk(66.7%, 61%, 0%, 44.7%)
CIE-LABlab(27.46, 25.64, -48.86)
CIE-LCHlch(27.46, 55.18, 297.68°)
OKLaboklab(38.48% 0.0091 -0.1407)
OKLCHoklch(38.48% 0.141 273.7)
XYZxyz(7.3446, 5.2592, 25.8222)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F378D #8D852F
analogous
#2F668D #2F378D #562F8D
triadic
#2F378D #8D2F37 #378D2F
tetradic
#2F378D #8D2F66 #8D852F #2F8D56
square
#2F378D #8D2F66 #8D852F #2F8D56
split-complementary
#2F378D #8D562F #668D2F
monochromatic
#101331 #20255F #2F378D #3E49BB #6972CD

Accessibility & contrast

On white

10.23
#2F378D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F378D
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F378D#FFFFFF#000000##FFFFFF
##2F378D1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f378d;
/* rgb */ color: rgb(47, 55, 141);
/* oklch */ color: oklch(38.5% 0.141 273.7);
Tailwind
colors: {
  custom: {
    50: '#736daf',
    500: '#2f378d',
    950: '#000000',
  },
}
SCSS
$custom: #2f378d;
$custom-light: #736daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f378d",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 141
  },
  "hsl": {
    "h": 234.894,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38484,
    "c": 0.14099,
    "h": 273.7
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F378D

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

Preview Lab → · Contrast checker → · Palette generator →

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