#2F396C#2F396C

#2F396C is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.089 H 272.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2F396C
RGBrgb(47, 57, 108)
HSLhsl(230, 39%, 30%)
HSVhsv(230, 56%, 42%)
CMYKcmyk(56.5%, 47.2%, 0%, 57.6%)
CIE-LABlab(25.60, 12.20, -31.09)
CIE-LCHlch(25.60, 33.40, 291.42°)
OKLaboklab(36.32% 0.0045 -0.0884)
OKLCHoklch(36.32% 0.089 272.9)
XYZxyz(5.3413, 4.6129, 14.7934)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F396C #6C622F
analogous
#2F576C #2F396C #432F6C
triadic
#2F396C #6C2F39 #396C2F
tetradic
#2F396C #6C2F57 #6C622F #2F6C43
square
#2F396C #6C2F57 #6C622F #2F6C43
split-complementary
#2F396C #6C432F #576C2F
monochromatic
#0A0C17 #1C2241 #2F396C #425097 #5D6CB8

Accessibility & contrast

On white

10.92
#2F396C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F396C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F396C
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F396C#FFFFFF#000000##FFFFFF
##2F396C1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233F6E
Deuteranopia (green-blind)
#1C3A6B
Tritanopia (blue-blind)
#11444D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f396c;
/* rgb */ color: rgb(47, 57, 108);
/* oklch */ color: oklch(36.3% 0.089 272.9);
Tailwind
colors: {
  custom: {
    50: '#6d6f96',
    500: '#2f396c',
    950: '#000000',
  },
}
SCSS
$custom: #2f396c;
$custom-light: #6d6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#2f396c",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 108
  },
  "hsl": {
    "h": 230.164,
    "s": 39.355,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36318,
    "c": 0.08852,
    "h": 272.9
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

primary
#2F396C
secondary
#9D9259
accent
#BC59CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #2F396C

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

Preview Lab → · Contrast checker → · Palette generator →

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