#2A367E#2A367E

#2A367E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.122 H 271.9°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2A367E
RGBrgb(42, 54, 126)
HSLhsl(231, 50%, 33%)
HSVhsv(231, 67%, 49%)
CMYKcmyk(66.7%, 57.1%, 0%, 50.6%)
CIE-LABlab(25.67, 19.89, -42.43)
CIE-LCHlch(25.67, 46.86, 295.12°)
OKLaboklab(36.69% 0.004 -0.1219)
OKLCHoklch(36.69% 0.122 271.9)
XYZxyz(6.0386, 4.6364, 20.3113)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A367E #7E722A
analogous
#2A607E #2A367E #482A7E
triadic
#2A367E #7E2A36 #367E2A
tetradic
#2A367E #7E2A60 #7E722A #2A7E48
square
#2A367E #7E2A60 #7E722A #2A7E48
split-complementary
#2A367E #7E482A #607E2A
monochromatic
#0B0F22 #1B2250 #2A367E #394AAC #5A6AC8

Accessibility & contrast

On white

10.90
#2A367E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A367E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A367E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A367E#FFFFFF#000000##FFFFFF
##2A367E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004180
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a367e;
/* rgb */ color: rgb(42, 54, 126);
/* oklch */ color: oklch(36.7% 0.122 271.9);
Tailwind
colors: {
  custom: {
    50: '#6e6ca4',
    500: '#2a367e',
    950: '#000000',
  },
}
SCSS
$custom: #2a367e;
$custom-light: #6e6ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a367e",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 126
  },
  "hsl": {
    "h": 231.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3669,
    "c": 0.12199,
    "h": 271.9
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#2A367E
secondary
#AEA156
accent
#C64EDA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A367E

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

Preview Lab → · Contrast checker → · Palette generator →

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