#2F386E#2F386E

#2F386E is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.093 H 273.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2F386E
RGBrgb(47, 56, 110)
HSLhsl(231, 40%, 31%)
HSVhsv(231, 57%, 43%)
CMYKcmyk(57.3%, 49.1%, 0%, 56.9%)
CIE-LABlab(25.44, 13.61, -32.63)
CIE-LCHlch(25.44, 35.36, 292.64°)
OKLaboklab(36.23% 0.0061 -0.093)
OKLCHoklch(36.23% 0.093 273.7)
XYZxyz(5.4000, 4.5581, 15.3441)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F386E #6E652F
analogous
#2F576E #2F386E #452F6E
triadic
#2F386E #6E2F38 #386E2F
tetradic
#2F386E #6E2F57 #6E652F #2F6E45
square
#2F386E #6E2F57 #6E652F #2F6E45
split-complementary
#2F386E #6E452F #576E2F
monochromatic
#0A0C18 #1D2243 #2F386E #414E99 #5D6BBA

Accessibility & contrast

On white

10.99
#2F386E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F386E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F386E
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F386E#FFFFFF#000000##FFFFFF
##2F386E1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3F70
Deuteranopia (green-blind)
#183A6D
Tritanopia (blue-blind)
#0F444D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f386e;
/* rgb */ color: rgb(47, 56, 110);
/* oklch */ color: oklch(36.2% 0.093 273.7);
Tailwind
colors: {
  custom: {
    50: '#6d6e98',
    500: '#2f386e',
    950: '#000000',
  },
}
SCSS
$custom: #2f386e;
$custom-light: #6d6e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2f386e",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 110
  },
  "hsl": {
    "h": 231.429,
    "s": 40.127,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36234,
    "c": 0.09316,
    "h": 273.7
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#2F386E
secondary
#9F9559
accent
#BF58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #2F386E

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

Preview Lab → · Contrast checker → · Palette generator →

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