#2F389C#2F389C

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

Color values

HEX#2F389C
RGBrgb(47, 56, 156)
HSLhsl(235, 54%, 40%)
HSVhsv(235, 70%, 61%)
CMYKcmyk(69.9%, 64.1%, 0%, 38.8%)
CIE-LABlab(28.99, 30.44, -55.58)
CIE-LCHlch(28.99, 63.37, 298.71°)
OKLaboklab(40% 0.0077 -0.1604)
OKLCHoklch(40% 0.161 272.8)
XYZxyz(8.5852, 5.8322, 32.1193)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F389C #9C932F
analogous
#2F6F9C #2F389C #5D2F9C
triadic
#2F389C #9C2F38 #389C2F
tetradic
#2F389C #9C2F6F #9C932F #2F9C5D
square
#2F389C #9C2F6F #9C932F #2F9C5D
split-complementary
#2F389C #9C5D2F #6F9C2F
monochromatic
#13163E #21276D #2F389C #424DC6 #7179D4

Accessibility & contrast

On white

9.69
#2F389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F389C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F389C
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F389C#FFFFFF#000000##FFFFFF
##2F389C1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f389c;
/* rgb */ color: rgb(47, 56, 156);
/* oklch */ color: oklch(40.0% 0.161 272.8);
Tailwind
colors: {
  custom: {
    50: '#766eba',
    500: '#2f389c',
    950: '#000000',
  },
}
SCSS
$custom: #2f389c;
$custom-light: #766eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f389c",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 235.046,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40003,
    "c": 0.16059,
    "h": 272.8
  },
  "luminance": 0.05833
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F389C

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

Preview Lab → · Contrast checker → · Palette generator →

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