#2F389E#2F389E

#2F389E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.163 H 272.7°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2F389E
RGBrgb(47, 56, 158)
HSLhsl(235, 54%, 40%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(70.3%, 64.6%, 0%, 38%)
CIE-LABlab(29.16, 31.16, -56.51)
CIE-LCHlch(29.16, 64.53, 298.88°)
OKLaboklab(40.18% 0.0076 -0.1631)
OKLCHoklch(40.18% 0.163 272.7)
XYZxyz(8.7559, 5.9005, 33.0186)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F389E #9E952F
analogous
#2F6F9E #2F389E #5D2F9E
triadic
#2F389E #9E2F38 #389E2F
tetradic
#2F389E #9E2F6F #9E952F #2F9E5D
square
#2F389E #9E2F6F #9E952F #2F9E5D
split-complementary
#2F389E #9E5D2F #6F9E2F
monochromatic
#131740 #21276F #2F389E #434EC7 #727AD5

Accessibility & contrast

On white

9.63
#2F389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F389E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F389E#FFFFFF#000000##FFFFFF
##2F389E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f389e;
/* rgb */ color: rgb(47, 56, 158);
/* oklch */ color: oklch(40.2% 0.163 272.7);
Tailwind
colors: {
  custom: {
    50: '#776ebc',
    500: '#2f389e',
    950: '#000000',
  },
}
SCSS
$custom: #2f389e;
$custom-light: #776ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f389e",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 235.135,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40185,
    "c": 0.16331,
    "h": 272.7
  },
  "luminance": 0.05901
}

Semantic roles & 50–950 ramp

primary
#2F389E
secondary
#BDB66C
accent
#D24ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F389E

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

Preview Lab → · Contrast checker → · Palette generator →

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