#2F3E8E#2F3E8E

#2F3E8E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.133 H 271.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2F3E8E
RGBrgb(47, 62, 142)
HSLhsl(231, 50%, 37%)
HSVhsv(231, 67%, 56%)
CMYKcmyk(66.9%, 56.3%, 0%, 44.3%)
CIE-LABlab(29.42, 21.29, -46.30)
CIE-LCHlch(29.42, 50.97, 294.69°)
OKLaboklab(39.97% 0.0026 -0.1331)
OKLCHoklch(39.97% 0.133 271.1)
XYZxyz(7.7758, 6.0019, 26.3346)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E8E #8E7F2F
analogous
#2F6E8E #2F3E8E #4F2F8E
triadic
#2F3E8E #8E2F3E #3E8E2F
tetradic
#2F3E8E #8E2F6E #8E7F2F #2F8E4F
square
#2F3E8E #8E2F6E #8E7F2F #2F8E4F
split-complementary
#2F3E8E #8E4F2F #6E8E2F
monochromatic
#111632 #202A60 #2F3E8E #3E52BC #6A7ACE

Accessibility & contrast

On white

9.54
#2F3E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F3E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E8E
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E8E#FFFFFF#000000##FFFFFF
##2F3E8E1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3e8e;
/* rgb */ color: rgb(47, 62, 142);
/* oklch */ color: oklch(40.0% 0.133 271.1);
Tailwind
colors: {
  custom: {
    50: '#7373b0',
    500: '#2f3e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e8e;
$custom-light: #7373b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e8e",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 142
  },
  "hsl": {
    "h": 230.526,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39967,
    "c": 0.13312,
    "h": 271.1
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#2F3E8E
secondary
#B5A864
accent
#C44EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F3E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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