#2F337C#2F337C

#2F337C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.122 H 276.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2F337C
RGBrgb(47, 51, 124)
HSLhsl(237, 45%, 34%)
HSVhsv(237, 62%, 49%)
CMYKcmyk(62.1%, 58.9%, 0%, 51.4%)
CIE-LABlab(25.04, 22.13, -42.18)
CIE-LCHlch(25.04, 47.64, 297.69°)
OKLaboklab(36.25% 0.013 -0.1211)
OKLCHoklch(36.25% 0.122 276.1)
XYZxyz(5.9930, 4.4268, 19.6035)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F337C #7C782F
analogous
#2F597C #2F337C #512F7C
triadic
#2F337C #7C2F33 #337C2F
tetradic
#2F337C #7C2F59 #7C782F #2F7C51
square
#2F337C #7C2F59 #7C782F #2F7C51
split-complementary
#2F337C #7C512F #597C2F
monochromatic
#0D0E23 #1E2150 #2F337C #4045A8 #6267C3

Accessibility & contrast

On white

11.14
#2F337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F337C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F337C
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F337C#FFFFFF#000000##FFFFFF
##2F337C1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f337c;
/* rgb */ color: rgb(47, 51, 124);
/* oklch */ color: oklch(36.3% 0.122 276.1);
Tailwind
colors: {
  custom: {
    50: '#706aa2',
    500: '#2f337c',
    950: '#000000',
  },
}
SCSS
$custom: #2f337c;
$custom-light: #706aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f337c",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 236.883,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36254,
    "c": 0.12179,
    "h": 276.1
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#2F337C
secondary
#AAA65C
accent
#CE53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F337C

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

Preview Lab → · Contrast checker → · Palette generator →

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