#2F3B7D#2F3B7D

#2F3B7D is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.0% C 0.112 H 272.3°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2F3B7D
RGBrgb(47, 59, 125)
HSLhsl(231, 45%, 34%)
HSVhsv(231, 62%, 49%)
CMYKcmyk(62.4%, 52.8%, 0%, 51%)
CIE-LABlab(27.33, 17.03, -39.10)
CIE-LCHlch(27.33, 42.65, 293.53°)
OKLaboklab(38% 0.0044 -0.1119)
OKLCHoklch(38% 0.112 272.3)
XYZxyz(6.4367, 5.2124, 20.0650)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B7D #7D712F
analogous
#2F627D #2F3B7D #4A2F7D
triadic
#2F3B7D #7D2F3B #3B7D2F
tetradic
#2F3B7D #7D2F62 #7D712F #2F7D4A
square
#2F3B7D #7D2F62 #7D712F #2F7D4A
split-complementary
#2F3B7D #7D4A2F #627D2F
monochromatic
#0E1124 #1E2651 #2F3B7D #4050A9 #6271C4

Accessibility & contrast

On white

10.28
#2F3B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F3B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3B7D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B7D#FFFFFF#000000##FFFFFF
##2F3B7D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447F
Deuteranopia (green-blind)
#043D7C
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3b7d;
/* rgb */ color: rgb(47, 59, 125);
/* oklch */ color: oklch(38.0% 0.112 272.3);
Tailwind
colors: {
  custom: {
    50: '#7070a3',
    500: '#2f3b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b7d;
$custom-light: #7070a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b7d",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 125
  },
  "hsl": {
    "h": 230.769,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38,
    "c": 0.11203,
    "h": 272.3
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#2F3B7D
secondary
#AB9F5D
accent
#C153D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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