#2F335D#2F335D

#2F335D is a dark, moderate blue. Relative luminance 0.038; OKLCH L 33.9% C 0.073 H 277.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2F335D
RGBrgb(47, 51, 93)
HSLhsl(235, 33%, 27%)
HSVhsv(235, 49%, 36%)
CMYKcmyk(49.5%, 45.2%, 0%, 63.5%)
CIE-LABlab(22.87, 11.05, -25.71)
CIE-LCHlch(22.87, 27.99, 293.26°)
OKLaboklab(33.93% 0.0097 -0.0727)
OKLCHoklch(33.93% 0.073 277.6)
XYZxyz(4.3313, 3.7621, 10.8517)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F335D #5D592F
analogous
#2F4A5D #2F335D #422F5D
triadic
#2F335D #5D2F33 #335D2F
tetradic
#2F335D #5D2F4A #5D592F #2F5D42
square
#2F335D #5D2F4A #5D592F #2F5D42
split-complementary
#2F335D #5D422F #4A5D2F
monochromatic
#0A0B14 #1A1D34 #2F335D #444986 #5B62AC

Accessibility & contrast

On white

11.98
#2F335D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F335D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F335D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F335D#FFFFFF#000000##FFFFFF
##2F335D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23385F
Deuteranopia (green-blind)
#1F355C
Tritanopia (blue-blind)
#1F3C43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f335d;
/* rgb */ color: rgb(47, 51, 93);
/* oklch */ color: oklch(33.9% 0.073 277.6);
Tailwind
colors: {
  custom: {
    50: '#6a6a8b',
    500: '#2f335d',
    950: '#000000',
  },
}
SCSS
$custom: #2f335d;
$custom-light: #6a6a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f335d",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 93
  },
  "hsl": {
    "h": 234.783,
    "s": 32.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33927,
    "c": 0.07336,
    "h": 277.6
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#2F335D
secondary
#8F8A59
accent
#C05FC9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #2F335D

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

Preview Lab → · Contrast checker → · Palette generator →

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