#2D2F7A#2D2F7A

#2D2F7A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.125 H 276.7°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2D2F7A
RGBrgb(45, 47, 122)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 48%)
CMYKcmyk(63.1%, 61.5%, 0%, 52.2%)
CIE-LABlab(23.66, 23.75, -43.16)
CIE-LCHlch(23.66, 49.26, 298.82°)
OKLaboklab(35.14% 0.0146 -0.1241)
OKLCHoklch(35.14% 0.125 276.7)
XYZxyz(5.6104, 3.9956, 18.8842)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F7A #7A782D
analogous
#2D557A #2D2F7A #522D7A
triadic
#2D2F7A #7A2D2F #2F7A2D
tetradic
#2D2F7A #7A2D55 #7A782D #2D7A52
square
#2D2F7A #7A2D55 #7A782D #2D7A52
split-complementary
#2D2F7A #7A522D #557A2D
monochromatic
#0C0D21 #1D1E4D #2D2F7A #3D40A7 #5E60C4

Accessibility & contrast

On white

11.67
#2D2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F7A
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F7A#FFFFFF#000000##FFFFFF
##2D2F7A1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2f7a;
/* rgb */ color: rgb(45, 47, 122);
/* oklch */ color: oklch(35.1% 0.125 276.7);
Tailwind
colors: {
  custom: {
    50: '#6f67a1',
    500: '#2d2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f7a;
$custom-light: #6f67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f7a",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 238.442,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35143,
    "c": 0.12492,
    "h": 276.7
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#2D2F7A
secondary
#AAA859
accent
#D252D6
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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