#2F398E#2F398E

#2F398E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.140 H 273.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2F398E
RGBrgb(47, 57, 142)
HSLhsl(234, 50%, 37%)
HSVhsv(234, 67%, 56%)
CMYKcmyk(66.9%, 59.9%, 0%, 44.3%)
CIE-LABlab(28.07, 24.66, -48.49)
CIE-LCHlch(28.07, 54.40, 296.96°)
OKLaboklab(38.96% 0.0073 -0.1396)
OKLCHoklch(38.96% 0.14 273)
XYZxyz(7.5163, 5.4829, 26.2482)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F398E #8E842F
analogous
#2F698E #2F398E #542F8E
triadic
#2F398E #8E2F39 #398E2F
tetradic
#2F398E #8E2F69 #8E842F #2F8E54
square
#2F398E #8E2F69 #8E842F #2F8E54
split-complementary
#2F398E #8E542F #698E2F
monochromatic
#111432 #202760 #2F398E #3E4BBC #6A74CE

Accessibility & contrast

On white

10.02
#2F398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F398E
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F398E#FFFFFF#000000##FFFFFF
##2F398E1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f398e;
/* rgb */ color: rgb(47, 57, 142);
/* oklch */ color: oklch(39.0% 0.140 273.0);
Tailwind
colors: {
  custom: {
    50: '#736fb0',
    500: '#2f398e',
    950: '#000000',
  },
}
SCSS
$custom: #2f398e;
$custom-light: #736fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f398e",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 233.684,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3896,
    "c": 0.13978,
    "h": 273
  },
  "luminance": 0.05484
}

Semantic roles & 50–950 ramp

primary
#2F398E
secondary
#B5AC64
accent
#CB4EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F398E

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

Preview Lab → · Contrast checker → · Palette generator →

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