#2F399B#2F399B

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

Color values

HEX#2F399B
RGBrgb(47, 57, 155)
HSLhsl(234, 53%, 40%)
HSVhsv(234, 70%, 61%)
CMYKcmyk(69.7%, 63.2%, 0%, 39.2%)
CIE-LABlab(29.15, 29.42, -54.70)
CIE-LCHlch(29.15, 62.11, 298.28°)
OKLaboklab(40.1% 0.007 -0.1578)
OKLCHoklch(40.1% 0.158 272.5)
XYZxyz(8.5498, 5.8963, 31.6915)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F399B #9B912F
analogous
#2F6F9B #2F399B #5B2F9B
triadic
#2F399B #9B2F39 #399B2F
tetradic
#2F399B #9B2F6F #9B912F #2F9B5B
square
#2F399B #9B2F6F #9B912F #2F9B5B
split-complementary
#2F399B #9B5B2F #6F9B2F
monochromatic
#13163D #21286C #2F399B #424EC6 #717AD4

Accessibility & contrast

On white

9.64
#2F399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F399B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F399B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F399B#FFFFFF#000000##FFFFFF
##2F399B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f399b;
/* rgb */ color: rgb(47, 57, 155);
/* oklch */ color: oklch(40.1% 0.158 272.5);
Tailwind
colors: {
  custom: {
    50: '#766fb9',
    500: '#2f399b',
    950: '#000000',
  },
}
SCSS
$custom: #2f399b;
$custom-light: #766fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f399b",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 234.444,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.15798,
    "h": 272.5
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#2F399B
secondary
#BBB46A
accent
#CF4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F399B

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

Preview Lab → · Contrast checker → · Palette generator →

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