#2D2F6E#2D2F6E

#2D2F6E is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.107 H 277.7°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2D2F6E
RGBrgb(45, 47, 110)
HSLhsl(238, 42%, 30%)
HSVhsv(238, 59%, 43%)
CMYKcmyk(59.1%, 57.3%, 0%, 56.9%)
CIE-LABlab(22.71, 19.39, -37.02)
CIE-LCHlch(22.71, 41.79, 297.64°)
OKLaboklab(34.14% 0.0144 -0.106)
OKLCHoklch(34.14% 0.107 277.7)
XYZxyz(4.9123, 3.7164, 15.2073)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F6E #6E6C2D
analogous
#2D4F6E #2D2F6E #4B2D6E
triadic
#2D2F6E #6E2D2F #2F6E2D
tetradic
#2D2F6E #6E2D4F #6E6C2D #2D6E4B
square
#2D2F6E #6E2D4F #6E6C2D #2D6E4B
split-complementary
#2D2F6E #6E4B2D #4F6E2D
monochromatic
#090A17 #1B1C43 #2D2F6E #3F4299 #5A5DBB

Accessibility & contrast

On white

12.05
#2D2F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D2F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F6E
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F6E#FFFFFF#000000##FFFFFF
##2D2F6E1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063970
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#0A3E49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2f6e;
/* rgb */ color: rgb(45, 47, 110);
/* oklch */ color: oklch(34.1% 0.107 277.7);
Tailwind
colors: {
  custom: {
    50: '#6c6798',
    500: '#2d2f6e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f6e;
$custom-light: #6c6798;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f6e",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 110
  },
  "hsl": {
    "h": 238.154,
    "s": 41.935,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3414,
    "c": 0.10699,
    "h": 277.7
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#2D2F6E
secondary
#A09D57
accent
#CE56D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2D2F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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