#2F3E8F#2F3E8F

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

Color values

HEX#2F3E8F
RGBrgb(47, 62, 143)
HSLhsl(231, 51%, 37%)
HSVhsv(231, 67%, 56%)
CMYKcmyk(67.1%, 56.6%, 0%, 43.9%)
CIE-LABlab(29.49, 21.66, -46.80)
CIE-LCHlch(29.49, 51.57, 294.84°)
OKLaboklab(40.05% 0.0027 -0.1345)
OKLCHoklch(40.05% 0.135 271.1)
XYZxyz(7.8512, 6.0320, 26.7318)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E8F #8F802F
analogous
#2F6E8F #2F3E8F #502F8F
triadic
#2F3E8F #8F2F3E #3E8F2F
tetradic
#2F3E8F #8F2F6E #8F802F #2F8F50
square
#2F3E8F #8F2F6E #8F802F #2F8F50
split-complementary
#2F3E8F #8F502F #6E8F2F
monochromatic
#111633 #202A61 #2F3E8F #3E52BD #6A7ACE

Accessibility & contrast

On white

9.52
#2F3E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F3E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E8F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E8F#FFFFFF#000000##FFFFFF
##2F3E8F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3e8f;
/* rgb */ color: rgb(47, 62, 143);
/* oklch */ color: oklch(40.0% 0.135 271.1);
Tailwind
colors: {
  custom: {
    50: '#7373b0',
    500: '#2f3e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e8f;
$custom-light: #7373b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e8f",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 143
  },
  "hsl": {
    "h": 230.625,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40048,
    "c": 0.13457,
    "h": 271.1
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#2F3E8F
secondary
#B5A965
accent
#C44EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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