#2F398D#2F398D

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

Color values

HEX#2F398D
RGBrgb(47, 57, 141)
HSLhsl(234, 50%, 37%)
HSVhsv(234, 67%, 55%)
CMYKcmyk(66.7%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.99, 24.30, -48.01)
CIE-LCHlch(27.99, 53.80, 296.84°)
OKLaboklab(38.88% 0.0073 -0.1382)
OKLCHoklch(38.88% 0.138 273)
XYZxyz(7.4415, 5.4530, 25.8545)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F398D #8D832F
analogous
#2F688D #2F398D #542F8D
triadic
#2F398D #8D2F39 #398D2F
tetradic
#2F398D #8D2F68 #8D832F #2F8D54
square
#2F398D #8D2F68 #8D832F #2F8D54
split-complementary
#2F398D #8D542F #688D2F
monochromatic
#101431 #20265F #2F398D #3E4CBB #6974CD

Accessibility & contrast

On white

10.04
#2F398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F398D
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F398D#FFFFFF#000000##FFFFFF
##2F398D1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f398d;
/* rgb */ color: rgb(47, 57, 141);
/* oklch */ color: oklch(38.9% 0.138 273.0);
Tailwind
colors: {
  custom: {
    50: '#736faf',
    500: '#2f398d',
    950: '#000000',
  },
}
SCSS
$custom: #2f398d;
$custom-light: #736faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f398d",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 233.617,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38875,
    "c": 0.13835,
    "h": 273
  },
  "luminance": 0.05454
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F398D

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

Preview Lab → · Contrast checker → · Palette generator →

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