#2F389B#2F389B

#2F389B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.159 H 272.8°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2F389B
RGBrgb(47, 56, 155)
HSLhsl(235, 53%, 40%)
HSVhsv(235, 70%, 61%)
CMYKcmyk(69.7%, 63.9%, 0%, 39.2%)
CIE-LABlab(28.90, 30.08, -55.11)
CIE-LCHlch(28.90, 62.78, 298.62°)
OKLaboklab(39.91% 0.0078 -0.159)
OKLCHoklch(39.91% 0.159 272.8)
XYZxyz(8.5009, 5.7984, 31.6752)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F389B #9B922F
analogous
#2F6E9B #2F389B #5C2F9B
triadic
#2F389B #9B2F38 #389B2F
tetradic
#2F389B #9B2F6E #9B922F #2F9B5C
square
#2F389B #9B2F6E #9B922F #2F9B5C
split-complementary
#2F389B #9B5C2F #6E9B2F
monochromatic
#13163D #21276C #2F389B #424DC6 #7179D4

Accessibility & contrast

On white

9.72
#2F389B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F389B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F389B
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F389B#FFFFFF#000000##FFFFFF
##2F389B1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005164
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f389b;
/* rgb */ color: rgb(47, 56, 155);
/* oklch */ color: oklch(39.9% 0.159 272.8);
Tailwind
colors: {
  custom: {
    50: '#766eb9',
    500: '#2f389b',
    950: '#000000',
  },
}
SCSS
$custom: #2f389b;
$custom-light: #766eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f389b",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 155
  },
  "hsl": {
    "h": 235,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39912,
    "c": 0.15922,
    "h": 272.8
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#2F389B
secondary
#BBB56A
accent
#D14BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F389B

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

Preview Lab → · Contrast checker → · Palette generator →

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