#2F398B#2F398B

#2F398B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.135 H 273.1°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2F398B
RGBrgb(47, 57, 139)
HSLhsl(233, 49%, 36%)
HSVhsv(233, 66%, 55%)
CMYKcmyk(66.2%, 59%, 0%, 45.5%)
CIE-LABlab(27.83, 23.56, -47.03)
CIE-LCHlch(27.83, 52.60, 296.61°)
OKLaboklab(38.71% 0.0072 -0.1353)
OKLCHoklch(38.71% 0.135 273.1)
XYZxyz(7.2941, 5.3940, 25.0779)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F398B #8B812F
analogous
#2F678B #2F398B #532F8B
triadic
#2F398B #8B2F39 #398B2F
tetradic
#2F398B #8B2F67 #8B812F #2F8B53
square
#2F398B #8B2F67 #8B812F #2F8B53
split-complementary
#2F398B #8B532F #678B2F
monochromatic
#101330 #20265D #2F398B #3E4CB9 #6873CC

Accessibility & contrast

On white

10.10
#2F398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F398B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F398B#FFFFFF#000000##FFFFFF
##2F398B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f398b;
/* rgb */ color: rgb(47, 57, 139);
/* oklch */ color: oklch(38.7% 0.135 273.1);
Tailwind
colors: {
  custom: {
    50: '#736fae',
    500: '#2f398b',
    950: '#000000',
  },
}
SCSS
$custom: #2f398b;
$custom-light: #736fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f398b",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 233.478,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38707,
    "c": 0.13547,
    "h": 273.1
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

primary
#2F398B
secondary
#B3AA63
accent
#CA4FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F398B

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

Preview Lab → · Contrast checker → · Palette generator →

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