#2F399A#2F399A

#2F399A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.157 H 272.6°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2F399A
RGBrgb(47, 57, 154)
HSLhsl(234, 53%, 39%)
HSVhsv(234, 69%, 60%)
CMYKcmyk(69.5%, 63%, 0%, 39.6%)
CIE-LABlab(29.06, 29.06, -54.23)
CIE-LCHlch(29.06, 61.52, 298.18°)
OKLaboklab(40.01% 0.007 -0.1564)
OKLCHoklch(40.01% 0.157 272.6)
XYZxyz(8.4662, 5.8629, 31.2511)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F399A #9A902F
analogous
#2F6E9A #2F399A #5B2F9A
triadic
#2F399A #9A2F39 #399A2F
tetradic
#2F399A #9A2F6E #9A902F #2F9A5B
square
#2F399A #9A2F6E #9A902F #2F9A5B
split-complementary
#2F399A #9A5B2F #6E9A2F
monochromatic
#12163C #21286B #2F399A #414DC5 #7079D3

Accessibility & contrast

On white

9.66
#2F399A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F399A
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F399A#FFFFFF#000000##FFFFFF
##2F399A1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f399a;
/* rgb */ color: rgb(47, 57, 154);
/* oklch */ color: oklch(40.0% 0.157 272.6);
Tailwind
colors: {
  custom: {
    50: '#766fb9',
    500: '#2f399a',
    950: '#000000',
  },
}
SCSS
$custom: #2f399a;
$custom-light: #766fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f399a",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 154
  },
  "hsl": {
    "h": 234.393,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.1566,
    "h": 272.6
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#2F399A
secondary
#BBB36A
accent
#CF4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F399A

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

Preview Lab → · Contrast checker → · Palette generator →

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