#2F395C#2F395C

#2F395C is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.3% C 0.063 H 270.8°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2F395C
RGBrgb(47, 57, 92)
HSLhsl(227, 32%, 27%)
HSVhsv(227, 49%, 36%)
CMYKcmyk(48.9%, 38%, 0%, 63.9%)
CIE-LABlab(24.65, 6.56, -22.25)
CIE-LCHlch(24.65, 23.19, 286.43°)
OKLaboklab(35.28% 0.0009 -0.0626)
OKLCHoklch(35.28% 0.063 270.8)
XYZxyz(4.5666, 4.3030, 10.7131)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F395C #5C522F
analogous
#2F505C #2F395C #3C2F5C
triadic
#2F395C #5C2F39 #395C2F
tetradic
#2F395C #5C2F50 #5C522F #2F5C3C
square
#2F395C #5C2F50 #5C522F #2F5C3C
split-complementary
#2F395C #5C3C2F #505C2F
monochromatic
#0A0D14 #1A2033 #2F395C #445285 #5A6CAB

Accessibility & contrast

On white

11.29
#2F395C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F395C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F395C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F395C#FFFFFF#000000##FFFFFF
##2F395C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3D5D
Deuteranopia (green-blind)
#28395B
Tritanopia (blue-blind)
#1F4046
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f395c;
/* rgb */ color: rgb(47, 57, 92);
/* oklch */ color: oklch(35.3% 0.063 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a6f8a',
    500: '#2f395c',
    950: '#000000',
  },
}
SCSS
$custom: #2f395c;
$custom-light: #6a6f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f395c",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 92
  },
  "hsl": {
    "h": 226.667,
    "s": 32.374,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35276,
    "c": 0.06258,
    "h": 270.8
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#2F395C
secondary
#8E8259
accent
#B15FC9
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #2F395C

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

Preview Lab → · Contrast checker → · Palette generator →

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