#2F388D#2F388D

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

Color values

HEX#2F388D
RGBrgb(47, 56, 141)
HSLhsl(234, 50%, 37%)
HSVhsv(234, 67%, 55%)
CMYKcmyk(66.7%, 60.3%, 0%, 44.7%)
CIE-LABlab(27.72, 24.97, -48.44)
CIE-LCHlch(27.72, 54.49, 297.27°)
OKLaboklab(38.68% 0.0082 -0.1394)
OKLCHoklch(38.68% 0.14 273.4)
XYZxyz(7.3926, 5.3551, 25.8382)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F388D #8D842F
analogous
#2F678D #2F388D #552F8D
triadic
#2F388D #8D2F38 #388D2F
tetradic
#2F388D #8D2F67 #8D842F #2F8D55
square
#2F388D #8D2F67 #8D842F #2F8D55
split-complementary
#2F388D #8D552F #678D2F
monochromatic
#101431 #20265F #2F388D #3E4ABB #6973CD

Accessibility & contrast

On white

10.14
#2F388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F388D
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F388D#FFFFFF#000000##FFFFFF
##2F388D1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f388d;
/* rgb */ color: rgb(47, 56, 141);
/* oklch */ color: oklch(38.7% 0.140 273.4);
Tailwind
colors: {
  custom: {
    50: '#736eaf',
    500: '#2f388d',
    950: '#000000',
  },
}
SCSS
$custom: #2f388d;
$custom-light: #736eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f388d",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 234.255,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38679,
    "c": 0.13968,
    "h": 273.4
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#2F388D
secondary
#B4AC64
accent
#CC4EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F388D

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

Preview Lab → · Contrast checker → · Palette generator →

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