#2F398F#2F398F

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

Color values

HEX#2F398F
RGBrgb(47, 57, 143)
HSLhsl(234, 51%, 37%)
HSVhsv(234, 67%, 56%)
CMYKcmyk(67.1%, 60.1%, 0%, 43.9%)
CIE-LABlab(28.15, 25.03, -48.98)
CIE-LCHlch(28.15, 55.00, 297.07°)
OKLaboklab(39.05% 0.0073 -0.141)
OKLCHoklch(39.05% 0.141 272.9)
XYZxyz(7.5917, 5.5131, 26.6453)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F398F #8F852F
analogous
#2F698F #2F398F #552F8F
triadic
#2F398F #8F2F39 #398F2F
tetradic
#2F398F #8F2F69 #8F852F #2F8F55
square
#2F398F #8F2F69 #8F852F #2F8F55
split-complementary
#2F398F #8F552F #698F2F
monochromatic
#111433 #202761 #2F398F #3E4BBD #6A75CE

Accessibility & contrast

On white

9.99
#2F398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F398F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F398F#FFFFFF#000000##FFFFFF
##2F398F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f398f;
/* rgb */ color: rgb(47, 57, 143);
/* oklch */ color: oklch(39.0% 0.141 272.9);
Tailwind
colors: {
  custom: {
    50: '#736fb0',
    500: '#2f398f',
    950: '#000000',
  },
}
SCSS
$custom: #2f398f;
$custom-light: #736fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f398f",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 233.75,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39045,
    "c": 0.14121,
    "h": 272.9
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#2F398F
secondary
#B5AD65
accent
#CB4EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F398F

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

Preview Lab → · Contrast checker → · Palette generator →

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