#252E62#252E62

#252E62 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.092 H 272.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#252E62
RGBrgb(37, 46, 98)
HSLhsl(231, 45%, 26%)
HSVhsv(231, 62%, 38%)
CMYKcmyk(62.2%, 53.1%, 0%, 61.6%)
CIE-LABlab(20.94, 13.88, -32.12)
CIE-LCHlch(20.94, 34.99, 293.38°)
OKLaboklab(32.37% 0.0046 -0.0918)
OKLCHoklch(32.37% 0.092 272.8)
XYZxyz(3.9438, 3.2288, 11.9683)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E62 #625925
analogous
#254D62 #252E62 #3B2562
triadic
#252E62 #62252E #2E6225
tetradic
#252E62 #62254D #625925 #25623B
square
#252E62 #62254D #625925 #25623B
split-complementary
#252E62 #623B25 #4D6225
monochromatic
#080A16 #141936 #252E62 #36438E #4858BA

Accessibility & contrast

On white

12.76
#252E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E62
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E62#FFFFFF#000000##FFFFFF
##252E621.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133564
Deuteranopia (green-blind)
#083061
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252e62;
/* rgb */ color: rgb(37, 46, 98);
/* oklch */ color: oklch(32.4% 0.092 272.8);
Tailwind
colors: {
  custom: {
    50: '#66668f',
    500: '#252e62',
    950: '#000000',
  },
}
SCSS
$custom: #252e62;
$custom-light: #66668f;
$custom-dark: #000000;
JSON
{
  "hex": "#252e62",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 98
  },
  "hsl": {
    "h": 231.148,
    "s": 45.185,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32369,
    "c": 0.09193,
    "h": 272.8
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#252E62
secondary
#958B4E
accent
#C253D5
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06050C
muted
#7A7A7D

Preview Lab

Preview with #252E62

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

Preview Lab → · Contrast checker → · Palette generator →

#252E62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva