#252F98#252F98

#252F98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.169 H 271.0°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#252F98
RGBrgb(37, 47, 152)
HSLhsl(235, 61%, 37%)
HSVhsv(235, 76%, 60%)
CMYKcmyk(75.7%, 69.1%, 0%, 40.4%)
CIE-LABlab(25.84, 33.59, -58.31)
CIE-LCHlch(25.84, 67.29, 299.94°)
OKLaboklab(37.44% 0.0031 -0.1687)
OKLCHoklch(37.44% 0.169 271)
XYZxyz(7.4450, 4.6926, 30.2131)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F98 #988E25
analogous
#256898 #252F98 #552598
triadic
#252F98 #98252F #2F9825
tetradic
#252F98 #982568 #988E25 #259855
square
#252F98 #982568 #988E25 #259855
split-complementary
#252F98 #985525 #689825
monochromatic
#0D1136 #192067 #252F98 #313EC9 #5F6AD8

Accessibility & contrast

On white

10.83
#252F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#252F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F98
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F98#FFFFFF#000000##FFFFFF
##252F981.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #252f98;
/* rgb */ color: rgb(37, 47, 152);
/* oklch */ color: oklch(37.4% 0.169 271.0);
Tailwind
colors: {
  custom: {
    50: '#7268b7',
    500: '#252f98',
    950: '#000000',
  },
}
SCSS
$custom: #252f98;
$custom-light: #7268b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252f98",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 234.783,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37438,
    "c": 0.16872,
    "h": 271
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#252F98
secondary
#BDB55C
accent
#D644E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252F98

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

Preview Lab → · Contrast checker → · Palette generator →

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