#2F399C#2F399C

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

Color values

HEX#2F399C
RGBrgb(47, 57, 156)
HSLhsl(234, 54%, 40%)
HSVhsv(234, 70%, 61%)
CMYKcmyk(69.9%, 63.5%, 0%, 38.8%)
CIE-LABlab(29.24, 29.79, -55.17)
CIE-LCHlch(29.24, 62.69, 298.37°)
OKLaboklab(40.19% 0.007 -0.1592)
OKLCHoklch(40.19% 0.159 272.5)
XYZxyz(8.6342, 5.9301, 32.1356)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F399C #9C922F
analogous
#2F709C #2F399C #5B2F9C
triadic
#2F399C #9C2F39 #399C2F
tetradic
#2F399C #9C2F70 #9C922F #2F9C5B
square
#2F399C #9C2F70 #9C922F #2F9C5B
split-complementary
#2F399C #9C5B2F #709C2F
monochromatic
#13173E #21286D #2F399C #424EC6 #717AD4

Accessibility & contrast

On white

9.61
#2F399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F399C
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F399C#FFFFFF#000000##FFFFFF
##2F399C1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f399c;
/* rgb */ color: rgb(47, 57, 156);
/* oklch */ color: oklch(40.2% 0.159 272.5);
Tailwind
colors: {
  custom: {
    50: '#766fba',
    500: '#2f399c',
    950: '#000000',
  },
}
SCSS
$custom: #2f399c;
$custom-light: #766fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f399c",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 234.495,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40187,
    "c": 0.15934,
    "h": 272.5
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#2F399C
secondary
#BCB46B
accent
#D04BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F399C

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

Preview Lab → · Contrast checker → · Palette generator →

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