#2F399E#2F399E

#2F399E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.162 H 272.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2F399E
RGBrgb(47, 57, 158)
HSLhsl(235, 54%, 40%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(70.3%, 63.9%, 0%, 38%)
CIE-LABlab(29.41, 30.51, -56.10)
CIE-LCHlch(29.41, 63.86, 298.54°)
OKLaboklab(40.37% 0.0069 -0.1619)
OKLCHoklch(40.37% 0.162 272.4)
XYZxyz(8.8049, 5.9984, 33.0349)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F399E #9E942F
analogous
#2F709E #2F399E #5D2F9E
triadic
#2F399E #9E2F39 #399E2F
tetradic
#2F399E #9E2F70 #9E942F #2F9E5D
square
#2F399E #9E2F70 #9E942F #2F9E5D
split-complementary
#2F399E #9E5D2F #709E2F
monochromatic
#131740 #21286F #2F399E #434FC7 #727BD5

Accessibility & contrast

On white

9.55
#2F399E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F399E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F399E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F399E#FFFFFF#000000##FFFFFF
##2F399E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f399e;
/* rgb */ color: rgb(47, 57, 158);
/* oklch */ color: oklch(40.4% 0.162 272.4);
Tailwind
colors: {
  custom: {
    50: '#776fbc',
    500: '#2f399e',
    950: '#000000',
  },
}
SCSS
$custom: #2f399e;
$custom-light: #776fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f399e",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 234.595,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40368,
    "c": 0.16208,
    "h": 272.4
  },
  "luminance": 0.05999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F399E

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

Preview Lab → · Contrast checker → · Palette generator →

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