#2F3370#2F3370

#2F3370 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.104 H 276.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2F3370
RGBrgb(47, 51, 112)
HSLhsl(236, 41%, 31%)
HSVhsv(236, 58%, 44%)
CMYKcmyk(58%, 54.5%, 0%, 56.1%)
CIE-LABlab(24.13, 17.79, -36.01)
CIE-LCHlch(24.13, 40.16, 296.29°)
OKLaboklab(35.29% 0.0124 -0.1029)
OKLCHoklch(35.29% 0.104 276.9)
XYZxyz(5.2798, 4.1415, 15.8473)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3370 #706C2F
analogous
#2F5370 #2F3370 #4B2F70
triadic
#2F3370 #702F33 #33702F
tetradic
#2F3370 #702F53 #706C2F #2F704B
square
#2F3370 #702F53 #706C2F #2F704B
split-complementary
#2F3370 #704B2F #53702F
monochromatic
#0B0C1A #1D1F45 #2F3370 #41479B #5E64BB

Accessibility & contrast

On white

11.49
#2F3370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F3370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3370
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3370#FFFFFF#000000##FFFFFF
##2F33701.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C72
Deuteranopia (green-blind)
#07376F
Tritanopia (blue-blind)
#0D414C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f3370;
/* rgb */ color: rgb(47, 51, 112);
/* oklch */ color: oklch(35.3% 0.104 276.9);
Tailwind
colors: {
  custom: {
    50: '#6e6a99',
    500: '#2f3370',
    950: '#000000',
  },
}
SCSS
$custom: #2f3370;
$custom-light: #6e6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3370",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 112
  },
  "hsl": {
    "h": 236.308,
    "s": 40.881,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.10367,
    "h": 276.9
  },
  "luminance": 0.04142
}

Semantic roles & 50–950 ramp

primary
#2F3370
secondary
#A19D5A
accent
#C957D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2F3370

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

Preview Lab → · Contrast checker → · Palette generator →

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