#2538AF#2538AF

#2538AF is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.188 H 268.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2538AF
RGBrgb(37, 56, 175)
HSLhsl(232, 65%, 42%)
HSVhsv(232, 79%, 69%)
CMYKcmyk(78.9%, 68%, 0%, 31.4%)
CIE-LABlab(30.20, 36.23, -65.06)
CIE-LCHlch(30.20, 74.47, 299.11°)
OKLaboklab(41.28% -0.0039 -0.1884)
OKLCHoklch(41.28% 0.188 268.8)
XYZxyz(9.9123, 6.3157, 41.2458)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2538AF #AF9C25
analogous
#257DAF #2538AF #5725AF
triadic
#2538AF #AF2538 #38AF25
tetradic
#2538AF #AF257D #AF9C25 #25AF57
square
#2538AF #AF257D #AF9C25 #25AF57
split-complementary
#2538AF #AF5725 #7DAF25
monochromatic
#10184A #1A287C #2538AF #3C51D6 #6E7EE0

Accessibility & contrast

On white

9.28
#2538AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2538AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2538AF
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2538AF#FFFFFF#000000##FFFFFF
##2538AF1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2538af;
/* rgb */ color: rgb(37, 56, 175);
/* oklch */ color: oklch(41.3% 0.188 268.8);
Tailwind
colors: {
  custom: {
    50: '#776fc8',
    500: '#2538af',
    950: '#000000',
  },
}
SCSS
$custom: #2538af;
$custom-light: #776fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2538af",
  "rgb": {
    "r": 37,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 231.739,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41277,
    "c": 0.18843,
    "h": 268.8
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#2538AF
secondary
#C7BA69
accent
#D140E8
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2538AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2538AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva