#2F387A#2F387A

#2F387A is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.112 H 273.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2F387A
RGBrgb(47, 56, 122)
HSLhsl(233, 44%, 33%)
HSVhsv(233, 61%, 48%)
CMYKcmyk(61.5%, 54.1%, 0%, 52.2%)
CIE-LABlab(26.27, 17.98, -38.93)
CIE-LCHlch(26.27, 42.88, 294.79°)
OKLaboklab(37.13% 0.0075 -0.1115)
OKLCHoklch(37.13% 0.112 273.8)
XYZxyz(6.0982, 4.8374, 19.0209)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F387A #7A712F
analogous
#2F5D7A #2F387A #4B2F7A
triadic
#2F387A #7A2F38 #387A2F
tetradic
#2F387A #7A2F5D #7A712F #2F7A4B
square
#2F387A #7A2F5D #7A712F #2F7A4B
split-complementary
#2F387A #7A4B2F #5D7A2F
monochromatic
#0D0F22 #1E244E #2F387A #404CA6 #616DC2

Accessibility & contrast

On white

10.67
#2F387A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F387A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F387A
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F387A#FFFFFF#000000##FFFFFF
##2F387A1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12417C
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f387a;
/* rgb */ color: rgb(47, 56, 122);
/* oklch */ color: oklch(37.1% 0.112 273.8);
Tailwind
colors: {
  custom: {
    50: '#6f6ea1',
    500: '#2f387a',
    950: '#000000',
  },
}
SCSS
$custom: #2f387a;
$custom-light: #6f6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f387a",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 122
  },
  "hsl": {
    "h": 232.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37128,
    "c": 0.11172,
    "h": 273.8
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#2F387A
secondary
#A9A05C
accent
#C554D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2F387A

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

Preview Lab → · Contrast checker → · Palette generator →

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