#2F389F#2F389F

#2F389F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.165 H 272.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2F389F
RGBrgb(47, 56, 159)
HSLhsl(235, 54%, 40%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(70.4%, 64.8%, 0%, 37.6%)
CIE-LABlab(29.25, 31.52, -56.97)
CIE-LCHlch(29.25, 65.11, 298.96°)
OKLaboklab(40.28% 0.0076 -0.1645)
OKLCHoklch(40.28% 0.165 272.6)
XYZxyz(8.8424, 5.9350, 33.4737)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F389F #9F962F
analogous
#2F709F #2F389F #5E2F9F
triadic
#2F389F #9F2F38 #389F2F
tetradic
#2F389F #9F2F70 #9F962F #2F9F5E
square
#2F389F #9F2F70 #9F962F #2F9F5E
split-complementary
#2F389F #9F5E2F #709F2F
monochromatic
#131741 #212770 #2F389F #444EC8 #737BD6

Accessibility & contrast

On white

9.60
#2F389F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F389F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F389F
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F389F#FFFFFF#000000##FFFFFF
##2F389F1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f389f;
/* rgb */ color: rgb(47, 56, 159);
/* oklch */ color: oklch(40.3% 0.165 272.6);
Tailwind
colors: {
  custom: {
    50: '#776ebc',
    500: '#2f389f',
    950: '#000000',
  },
}
SCSS
$custom: #2f389f;
$custom-light: #776ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f389f",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 159
  },
  "hsl": {
    "h": 235.179,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40277,
    "c": 0.16465,
    "h": 272.6
  },
  "luminance": 0.05936
}

Semantic roles & 50–950 ramp

primary
#2F389F
secondary
#BDB76D
accent
#D24ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F389F

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

Preview Lab → · Contrast checker → · Palette generator →

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