#2D2F7C#2D2F7C

#2D2F7C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.128 H 276.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2D2F7C
RGBrgb(45, 47, 124)
HSLhsl(238, 47%, 33%)
HSVhsv(238, 64%, 49%)
CMYKcmyk(63.7%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.82, 24.47, -44.16)
CIE-LCHlch(23.82, 50.49, 298.99°)
OKLaboklab(35.32% 0.0145 -0.127)
OKLCHoklch(35.32% 0.128 276.5)
XYZxyz(5.7356, 4.0457, 19.5435)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F7C #7C7A2D
analogous
#2D567C #2D2F7C #522D7C
triadic
#2D2F7C #7C2D2F #2F7C2D
tetradic
#2D2F7C #7C2D56 #7C7A2D #2D7C52
square
#2D2F7C #7C2D56 #7C7A2D #2D7C52
split-complementary
#2D2F7C #7C522D #567C2D
monochromatic
#0C0D22 #1D1E4F #2D2F7C #3D40A9 #5F61C5

Accessibility & contrast

On white

11.61
#2D2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D2F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F7C
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F7C#FFFFFF#000000##FFFFFF
##2D2F7C1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2f7c;
/* rgb */ color: rgb(45, 47, 124);
/* oklch */ color: oklch(35.3% 0.128 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f67a3',
    500: '#2d2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f7c;
$custom-light: #6f67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f7c",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 238.481,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35317,
    "c": 0.12783,
    "h": 276.5
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

primary
#2D2F7C
secondary
#ABA95A
accent
#D351D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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