#2F398C#2F398C

#2F398C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.137 H 273.0°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2F398C
RGBrgb(47, 57, 140)
HSLhsl(234, 50%, 37%)
HSVhsv(234, 66%, 55%)
CMYKcmyk(66.4%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.91, 23.93, -47.52)
CIE-LCHlch(27.91, 53.20, 296.73°)
OKLaboklab(38.79% 0.0073 -0.1367)
OKLCHoklch(38.79% 0.137 273)
XYZxyz(7.3675, 5.4234, 25.4644)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F398C #8C822F
analogous
#2F688C #2F398C #542F8C
triadic
#2F398C #8C2F39 #398C2F
tetradic
#2F398C #8C2F68 #8C822F #2F8C54
square
#2F398C #8C2F68 #8C822F #2F8C54
split-complementary
#2F398C #8C542F #688C2F
monochromatic
#101430 #20265E #2F398C #3E4CBA #6974CD

Accessibility & contrast

On white

10.07
#2F398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F398C
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F398C#FFFFFF#000000##FFFFFF
##2F398C1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f398c;
/* rgb */ color: rgb(47, 57, 140);
/* oklch */ color: oklch(38.8% 0.137 273.0);
Tailwind
colors: {
  custom: {
    50: '#736fae',
    500: '#2f398c',
    950: '#000000',
  },
}
SCSS
$custom: #2f398c;
$custom-light: #736fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f398c",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 233.548,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38791,
    "c": 0.13691,
    "h": 273
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F398C

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

Preview Lab → · Contrast checker → · Palette generator →

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