#2D2F7B#2D2F7B

#2D2F7B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.126 H 276.6°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2D2F7B
RGBrgb(45, 47, 123)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 48%)
CMYKcmyk(63.4%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.74, 24.11, -43.66)
CIE-LCHlch(23.74, 49.88, 298.91°)
OKLaboklab(35.23% 0.0145 -0.1255)
OKLCHoklch(35.23% 0.126 276.6)
XYZxyz(5.6727, 4.0205, 19.2122)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F7B #7B792D
analogous
#2D567B #2D2F7B #522D7B
triadic
#2D2F7B #7B2D2F #2F7B2D
tetradic
#2D2F7B #7B2D56 #7B792D #2D7B52
square
#2D2F7B #7B2D56 #7B792D #2D7B52
split-complementary
#2D2F7B #7B522D #567B2D
monochromatic
#0C0D21 #1D1E4E #2D2F7B #3D40A8 #5E61C4

Accessibility & contrast

On white

11.64
#2D2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2D2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F7B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F7B#FFFFFF#000000##FFFFFF
##2D2F7B1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2f7b;
/* rgb */ color: rgb(45, 47, 123);
/* oklch */ color: oklch(35.2% 0.126 276.6);
Tailwind
colors: {
  custom: {
    50: '#6f67a2',
    500: '#2d2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f7b;
$custom-light: #6f67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f7b",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 238.462,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3523,
    "c": 0.12638,
    "h": 276.6
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#2D2F7B
secondary
#ABA859
accent
#D352D6
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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